summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2010-06-18 18:32:11 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2010-06-18 18:32:11 +0200
commit095f8a48e6407e5788dc12a1fafd36ed7217b087 (patch)
tree6c75ddfdefe29bcfad751b027c0e0f7344e57fa9
parentc2c3d5e466331fe1453a8af70f61c91714d363ca (diff)
Add test for --title
-rw-r--r--man/feh.13
-rwxr-xr-xtest/feh.i9
2 files changed, 10 insertions, 2 deletions
diff --git a/man/feh.1 b/man/feh.1
index eb40141..2b78657 100644
--- a/man/feh.1
+++ b/man/feh.1
@@ -349,7 +349,8 @@ Set
for windows opened from thumbnail mode. See also
.Sx FORMAT SPECIFIERS .
.It Cm -^ , --title Ar title
-Set window title for slideshow mode.
+Set window title for slideshow mode. See
+.Sx FORMAT SPECIFIERS
.It Cm -u , --unloadable
Don't display images. Just print out their names if imlib2 can NOT
successfully load them.
diff --git a/test/feh.i b/test/feh.i
index 6adc901..ab28caa 100755
--- a/test/feh.i
+++ b/test/feh.i
@@ -4,7 +4,7 @@ use warnings;
use 5.010;
use Cwd;
-use Test::More tests => 63;
+use Test::More tests => 65;
use Time::HiRes qw/sleep/;
use X11::GUITest qw/:ALL/;
@@ -127,6 +127,13 @@ test_win_title($win, 'feh [1 of 1] - test/ok.jpg');
SendKeys('{DEL}');
test_no_win("Removed all images from slideshow");
+$win = feh_start('--title \'feh %m %u/%l %n\'',
+ 'test/ok.png test/ok.jpg test/ok.gif');
+test_win_title($win, 'feh slideshow 1/3 ok.png');
+SendKeys('{RIG}');
+test_win_title($win, 'feh slideshow 2/3 ok.jpg');
+feh_stop();
+
feh_start('--cycle-once', 'test/ok.png test/ok.jpg');
for (1 .. 2) {
SendKeys('{RIG}');