From 5e4a68332203dbd55e41b16ed4269bfbd6f0e585 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 4 Oct 2010 19:43:13 +0200 Subject: Add tests for action/filename drawing --- test/feh-scr.i | 43 ++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 42 insertions(+), 1 deletion(-) (limited to 'test/feh-scr.i') diff --git a/test/feh-scr.i b/test/feh-scr.i index dd7ece7..3f3b241 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 => 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"); -- cgit v1.2.3