From 90a6142b4ae35e6222da94a351d95a3a785908c3 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 9 Oct 2011 18:41:36 +0200 Subject: Add basic --index tests --- test/feh-scr.i | 37 ++++++++++++++++++++++++++++++++++++- test/scr/index_full_h400 | Bin 0 -> 3657 bytes test/scr/index_full_w400 | Bin 0 -> 2270 bytes test/scr/index_h400 | Bin 0 -> 1691 bytes test/scr/index_w400 | Bin 0 -> 1155 bytes 5 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 test/scr/index_full_h400 create mode 100644 test/scr/index_full_w400 create mode 100644 test/scr/index_h400 create mode 100644 test/scr/index_w400 diff --git a/test/feh-scr.i b/test/feh-scr.i index c677088..e242a59 100755 --- a/test/feh-scr.i +++ b/test/feh-scr.i @@ -6,7 +6,7 @@ use autodie qw/:all/; use Cwd; use GD qw/:DEFAULT :cmp/; -use Test::More tests => 48; +use Test::More tests => 53; use Time::HiRes qw/sleep/; use X11::GUITest qw/:ALL/; @@ -159,6 +159,41 @@ feh_start( test_scr('thumbnail_default'); feh_stop(); +feh_start( + '--index --limit-width 400', + 'test/ok/gif test/ok/jpg test/ok/png test/ok/pnm' +); +test_scr('index_w400'); +feh_stop(); + +feh_start( + '--fullindex --limit-width 400', + 'test/ok/gif test/ok/jpg test/ok/png test/ok/pnm' +); +test_scr('index_full_w400'); +feh_stop(); + +feh_start( + '--index --limit-width 400 --index-info "%n\n%S\n%wx%h"', + 'test/ok/gif test/ok/jpg test/ok/png test/ok/pnm' +); +test_scr('index_full_w400'); +feh_stop(); + +feh_start( + '--index --limit-height 400', + 'test/ok/gif test/ok/jpg test/ok/png test/ok/pnm' +); +test_scr('index_h400'); +feh_stop(); + +feh_start( + '--fullindex --limit-height 400', + 'test/ok/gif test/ok/jpg test/ok/png test/ok/pnm' +); +test_scr('index_full_h400'); +feh_stop(); + feh_start( '--caption-path .tc', 'test/bg/exact/in' diff --git a/test/scr/index_full_h400 b/test/scr/index_full_h400 new file mode 100644 index 0000000..1c01fce Binary files /dev/null and b/test/scr/index_full_h400 differ diff --git a/test/scr/index_full_w400 b/test/scr/index_full_w400 new file mode 100644 index 0000000..1a24ad1 Binary files /dev/null and b/test/scr/index_full_w400 differ diff --git a/test/scr/index_h400 b/test/scr/index_h400 new file mode 100644 index 0000000..cbf8e50 Binary files /dev/null and b/test/scr/index_h400 differ diff --git a/test/scr/index_w400 b/test/scr/index_w400 new file mode 100644 index 0000000..3bd3656 Binary files /dev/null and b/test/scr/index_w400 differ -- cgit v1.2.3