summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2010-06-18 13:06:04 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2010-06-18 13:06:04 +0200
commit2039632c52562e407575936ca0ea2b4b430ef024 (patch)
tree81d28af1220eb2b4e21665d9f32cd6901ae76c2a /test
parentc423cd2c5a8bed07f2d48f8378a6b8695ad53c9b (diff)
Tests for --geometry
Diffstat (limited to 'test')
-rwxr-xr-xtest/feh.i8
1 files changed, 7 insertions, 1 deletions
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();