Commit 85a50664 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

Add tests for --draw-tinted

parent 4be3cf72
Loading
Loading
Loading
Loading
+43 −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 => 42;
use Test::More tests => 48;
use Time::HiRes qw/sleep/;
use X11::GUITest qw/:ALL/;

@@ -188,6 +188,20 @@ test_scr('caption_none');

feh_stop();

feh_start(
	'--info "echo \'%f\n%wx%h\'"',
	'test/bg/exact/in'
);
test_scr('draw_info');
feh_stop();

feh_start(
	'--info "echo \'%f\n%wx%h\'" --draw-tinted',
	'test/bg/exact/in'
);
test_scr('draw_info_tinted');
feh_stop();

feh_start(
	'--draw-actions --action8 "nrm \'%f\'"',
	'test/bg/exact/in'
@@ -195,6 +209,13 @@ feh_start(
test_scr('draw_action');
feh_stop();

feh_start(
	'--draw-actions --action8 "nrm \'%f\'" --draw-tinted',
	'test/bg/exact/in'
);
test_scr('draw_action_tinted');
feh_stop();

feh_start(
	'--draw-filename',
	'test/bg/exact/in'
@@ -202,6 +223,13 @@ feh_start(
test_scr('draw_filename');
feh_stop();

feh_start(
	'--draw-filename --draw-tinted',
	'test/bg/exact/in'
);
test_scr('draw_filename_tinted');
feh_stop();

feh_start(
	'--draw-filename --draw-actions --action8 "nrm \'%f\'"',
	'test/bg/exact/in'
@@ -209,6 +237,13 @@ feh_start(
test_scr('draw_filename_action');
feh_stop();

feh_start(
	'--draw-filename --draw-actions --action8 "nrm \'%f\'" --draw-tinted',
	'test/bg/exact/in'
);
test_scr('draw_filename_action_tinted');
feh_stop();

feh_start(
	'--action8 "nrm \'%f\'"',
	'test/bg/exact/in'
@@ -229,6 +264,13 @@ test_scr('draw_nothing');

feh_stop();

feh_start(
	'--draw-tinted',
	'test/bg/exact/in'
);
test_scr('draw_nothing');
feh_stop();

feh_start(q{}, 'test/bg/large/h/in');
test_scr('feh_lhi');

+5.74 KiB

File added.

No diff preview for this file type.

+6.39 KiB

File added.

No diff preview for this file type.

+5.3 KiB

File added.

No diff preview for this file type.

test/scr/draw_info

0 → 100644
+5.38 KiB

File added.

No diff preview for this file type.

Loading