summaryrefslogtreecommitdiff
path: root/test/feh.i
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2010-10-02 20:16:54 +0200
committerDaniel Friesel <derf@finalrewind.org>2010-10-02 20:16:54 +0200
commit7b86f410356941010402b2602eaf023b75438858 (patch)
treeb3d5bf80d69374682ecedb22aa3b5e8de66d2dab /test/feh.i
parentcd5d2af0ad35ad5e6a8089733c031953b0c6ba42 (diff)
test/run-interactive: Limit Xnest dimensions
Diffstat (limited to 'test/feh.i')
-rwxr-xr-xtest/feh.i9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/feh.i b/test/feh.i
index 313dab8..94ab138 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/;
@@ -195,11 +195,12 @@ SendKeys('{HOM PGU}');
test_win_title($win, 'feh [96 of 100] - test/ok.png');
feh_stop();
-$win = feh_start('--thumbnails --thumb-title "%P [%l] %f"',
+$win = feh_start('--thumbnails -H 300 -W 310 --thumb-title "%P [%l] %f"',
'test/ok.png test/ok.gif test/ok.jpg');
test_win_title($win, 'feh [thumbnail mode]');
-$width = (GetWindowPos($win))[2];
-is($width, 640, 'thumbnail win: Correct default size');
+($width, $height) = (GetWindowPos($win))[2,3];
+is($width, 310, 'thumbnail win: Set correct width');
+is($height, 300, 'thumbnail win: Set correct height');
MoveMouseAbs(30, 30);
ClickMouseButton(M_BTN1);
($win) = WaitWindowViewable(qr{test/ok\.png$});