Commit 90a6142b authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

Add basic --index tests

parent 070ffc9f
Loading
Loading
Loading
Loading
+36 −1
Original line number Diff line number Diff line
@@ -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'
+3.57 KiB

File added.

No diff preview for this file type.

+2.22 KiB

File added.

No diff preview for this file type.

test/scr/index_h400

0 → 100644
+1.65 KiB

File added.

No diff preview for this file type.

test/scr/index_w400

0 → 100644
+1.13 KiB

File added.

No diff preview for this file type.