From 85a506641303f592732cc45780d0341bcb6541fc Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 4 Sep 2011 09:31:22 +0200 Subject: Add tests for --draw-tinted --- test/feh-scr.i | 44 ++++++++++++++++++++++++++++++++++- test/scr/draw_action_tinted | Bin 0 -> 5878 bytes test/scr/draw_filename_action_tinted | Bin 0 -> 6540 bytes test/scr/draw_filename_tinted | Bin 0 -> 5429 bytes test/scr/draw_info | Bin 0 -> 5511 bytes test/scr/draw_info_tinted | Bin 0 -> 5767 bytes 6 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 test/scr/draw_action_tinted create mode 100644 test/scr/draw_filename_action_tinted create mode 100644 test/scr/draw_filename_tinted create mode 100644 test/scr/draw_info create mode 100644 test/scr/draw_info_tinted (limited to 'test') diff --git a/test/feh-scr.i b/test/feh-scr.i index 9696c9e..037f42c 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 => 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'); diff --git a/test/scr/draw_action_tinted b/test/scr/draw_action_tinted new file mode 100644 index 0000000..3b2d17f Binary files /dev/null and b/test/scr/draw_action_tinted differ diff --git a/test/scr/draw_filename_action_tinted b/test/scr/draw_filename_action_tinted new file mode 100644 index 0000000..55908ee Binary files /dev/null and b/test/scr/draw_filename_action_tinted differ diff --git a/test/scr/draw_filename_tinted b/test/scr/draw_filename_tinted new file mode 100644 index 0000000..4f4e8f6 Binary files /dev/null and b/test/scr/draw_filename_tinted differ diff --git a/test/scr/draw_info b/test/scr/draw_info new file mode 100644 index 0000000..e5d9244 Binary files /dev/null and b/test/scr/draw_info differ diff --git a/test/scr/draw_info_tinted b/test/scr/draw_info_tinted new file mode 100644 index 0000000..37e2e26 Binary files /dev/null and b/test/scr/draw_info_tinted differ -- cgit v1.2.3