Commit 5e4a6833 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

Add tests for action/filename drawing

parent 9271b3c2
Loading
Loading
Loading
Loading
+42 −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 => 19;
use Test::More tests => 27;
use Time::HiRes qw/sleep/;
use X11::GUITest qw/:ALL/;

@@ -175,6 +175,47 @@ test_scr('caption_none');

feh_stop();

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

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

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

feh_start(
	'--action8 "nrm \'%f\'"',
	'test/bg/exact/in'
);
test_scr('draw_nothing');

SendKeys('d');
test_scr('draw_filename');

SendKeys('da');
test_scr('draw_action');

SendKeys('d');
test_scr('draw_filename_action');

SendKeys('ddaada');
test_scr('draw_nothing');

feh_stop();

unlink('test/bg/exact/.tc/in.txt');
rmdir('test/bg/exact/.tc');
unlink("/tmp/feh_${$}.png");

test/scr/draw_action

0 → 100644
+8.12 KiB

File added.

No diff preview for this file type.

test/scr/draw_filename

0 → 100644
+7.61 KiB

File added.

No diff preview for this file type.

+9.33 KiB

File added.

No diff preview for this file type.

test/scr/draw_nothing

0 → 100644
+6.37 KiB

File added.

No diff preview for this file type.