summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-09-04 09:31:22 +0200
committerDaniel Friesel <derf@finalrewind.org>2011-09-04 09:31:22 +0200
commit85a506641303f592732cc45780d0341bcb6541fc (patch)
treed11e9bf11fd9849e930c4c16c3f94bfd3d968465 /test
parent4be3cf72f8f936e51c98b6eb056410dfb589fd2f (diff)
Add tests for --draw-tinted
Diffstat (limited to 'test')
-rwxr-xr-xtest/feh-scr.i44
-rw-r--r--test/scr/draw_action_tintedbin0 -> 5878 bytes
-rw-r--r--test/scr/draw_filename_action_tintedbin0 -> 6540 bytes
-rw-r--r--test/scr/draw_filename_tintedbin0 -> 5429 bytes
-rw-r--r--test/scr/draw_infobin0 -> 5511 bytes
-rw-r--r--test/scr/draw_info_tintedbin0 -> 5767 bytes
6 files changed, 43 insertions, 1 deletions
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/;
@@ -189,6 +189,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'
);
@@ -196,6 +210,13 @@ 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'
);
@@ -203,6 +224,13 @@ 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'
);
@@ -210,6 +238,13 @@ 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
--- /dev/null
+++ b/test/scr/draw_action_tinted
Binary files differ
diff --git a/test/scr/draw_filename_action_tinted b/test/scr/draw_filename_action_tinted
new file mode 100644
index 0000000..55908ee
--- /dev/null
+++ b/test/scr/draw_filename_action_tinted
Binary files differ
diff --git a/test/scr/draw_filename_tinted b/test/scr/draw_filename_tinted
new file mode 100644
index 0000000..4f4e8f6
--- /dev/null
+++ b/test/scr/draw_filename_tinted
Binary files differ
diff --git a/test/scr/draw_info b/test/scr/draw_info
new file mode 100644
index 0000000..e5d9244
--- /dev/null
+++ b/test/scr/draw_info
Binary files differ
diff --git a/test/scr/draw_info_tinted b/test/scr/draw_info_tinted
new file mode 100644
index 0000000..37e2e26
--- /dev/null
+++ b/test/scr/draw_info_tinted
Binary files differ