summaryrefslogtreecommitdiff
path: root/test/feh.i
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2010-06-18 12:13:29 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2010-06-18 12:13:29 +0200
commit6c431b2e9621e81018f0b1e30d8474235fdfd1f0 (patch)
tree0df1ee6e4f912eb3470344dbe3c73cd463e5de89 /test/feh.i
parentd3a39ee9eb6e5494d7931a3c0bccd3561216b760 (diff)
Two more thumbnail tests
Diffstat (limited to 'test/feh.i')
-rwxr-xr-xtest/feh.i13
1 files changed, 12 insertions, 1 deletions
diff --git a/test/feh.i b/test/feh.i
index 9f91ec9..a4bb374 100755
--- a/test/feh.i
+++ b/test/feh.i
@@ -3,7 +3,7 @@ use strict;
use warnings;
use 5.010;
-use Test::More tests => 40;
+use Test::More tests => 42;
use Time::HiRes qw/sleep/;
use X11::GUITest qw/:ALL/;
@@ -191,4 +191,15 @@ ok($win, 'Thumbnail mode: Window opened');
SetInputFocus($win);
SendKeys('x');
ok(waitfor { not FindWindowLike(qr{^ok\.png$}) }, 'Thumbnail mode: closed');
+
+MoveMouseAbs(90, 30);
+ClickMouseButton(M_BTN1);
+($win) = WaitWindowViewable(qr{^ok\.gif$});
+ok($win, 'Thumbnail mode: Window opened');
+
+MoveMouseAbs(150,30);
+ClickMouseButton(M_BTN1);
+($win) = WaitWindowViewable(qr{^ok\.jpg$});
+ok($win, 'Thumbnail mode: Other window opened');
+
feh_stop();