summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2010-06-24 17:34:29 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2010-06-24 17:34:29 +0200
commit7920f39e9bee5ee9de51f3f4529be2cf15f1a1b0 (patch)
tree189d02eef056d79b850de801af7aa8a08085ca09 /test
parent1811640837de4136c4976b16ede8fcb955daf070 (diff)
Add test for --full-screen
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 9512442..74802a7 100755
--- a/test/feh.i
+++ b/test/feh.i
@@ -4,7 +4,7 @@ use warnings;
use 5.010;
use Cwd;
-use Test::More tests => 70;
+use Test::More tests => 71;
use Time::HiRes qw/sleep/;
use X11::GUITest qw/:ALL/;
@@ -296,6 +296,12 @@ is($width, 423, '--geometry: correct width');
is($height, 232, '--geometry: correct height');
feh_stop();
+$win = feh_start('--full-screen');
+(undef, undef, $width, $height) = GetWindowPos($win);
+ok([(GetWindowPos($win))[2, 3]] ~~ [GetScreenRes()],
+ 'fullscreen uses full screen size');
+feh_stop();
+
$win = feh_start();
(undef, undef, $width, $height) = GetWindowPos($win);
is($width, 16, 'correct default window width');