summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2010-06-18 12:27:22 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2010-06-18 12:27:22 +0200
commita900b2a735131a3d10e60be511d9d914887cdd32 (patch)
treec179c2c2dfc186e3f0662a8040d7f1f8f0be49c4 /test
parent6737c5a9bf93578f78e507d6bf5318d448cd61cc (diff)
Test for --start-at
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 626526d..c65f6f0 100755
--- a/test/feh.i
+++ b/test/feh.i
@@ -3,7 +3,7 @@ use strict;
use warnings;
use 5.010;
-use Test::More tests => 50;
+use Test::More tests => 52;
use Time::HiRes qw/sleep/;
use X11::GUITest qw/:ALL/;
@@ -225,3 +225,9 @@ ok(waitfor { not FindWindowLike(qr{^feh - test/ok\.jpg$}) }, 'win 2 closed');
SetInputFocus($win);
SendKeys('x');
test_no_win('all multiwindows closed');
+
+$win = feh_start('--start-at test/ok.jpg', 'test/ok.png test/ok.gif test/ok.jpg');
+test_win_title($win, 'feh [3 of 3] - test/ok.jpg');
+SendKeys('{RIG}');
+test_win_title($win, 'feh [1 of 3] - test/ok.png');
+feh_stop();