From 2039632c52562e407575936ca0ea2b4b430ef024 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 18 Jun 2010 13:06:04 +0200 Subject: Tests for --geometry --- test/feh.i | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/feh.i b/test/feh.i index f84c5b9..f91bd0f 100755 --- a/test/feh.i +++ b/test/feh.i @@ -4,7 +4,7 @@ use warnings; use 5.010; use Cwd; -use Test::More tests => 58; +use Test::More tests => 60; use Time::HiRes qw/sleep/; use X11::GUITest qw/:ALL/; @@ -278,3 +278,9 @@ $win = feh_start('--filelist test/filelist', q{}); test_win_title($win, "feh [1 of 3] - ${pwd}/test/ok.gif"); feh_stop(); unlink('test/filelist'); + +$win = feh_start('--geometry 423x232'); +(undef, undef, $width, $height) = GetWindowPos($win); +is($width, 423, '--geometry: correct width'); +is($height, 232, '--geometry: correct height'); +feh_stop(); -- cgit v1.2.3