From bd537196e67bf71ddacfbbb8ce608344beffb80e Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 5 Oct 2010 18:33:24 +0200 Subject: Add tests for --image-bg --- test/bg/transparency | Bin 0 -> 4397 bytes test/feh-scr.i | 17 ++++++++++++++++- test/scr/feh_ibg_black | Bin 0 -> 9521 bytes test/scr/feh_ibg_default | Bin 0 -> 10808 bytes test/scr/feh_ibg_white | Bin 0 -> 8635 bytes 5 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 test/bg/transparency create mode 100644 test/scr/feh_ibg_black create mode 100644 test/scr/feh_ibg_default create mode 100644 test/scr/feh_ibg_white diff --git a/test/bg/transparency b/test/bg/transparency new file mode 100644 index 0000000..1d4a171 Binary files /dev/null and b/test/bg/transparency differ diff --git a/test/feh-scr.i b/test/feh-scr.i index 5067ba7..098f1c0 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 => 38; +use Test::More tests => 42; use Time::HiRes qw/sleep/; use X11::GUITest qw/:ALL/; @@ -264,6 +264,21 @@ test_scr('feh_lhi_ooo'); feh_stop(); +feh_start(q{}, 'test/bg/transparency'); +test_scr('feh_ibg_default'); +feh_stop(); + +feh_start('--image-bg default', 'test/bg/transparency'); +test_scr('feh_ibg_default'); +feh_stop(); + +feh_start('--image-bg black', 'test/bg/transparency'); +test_scr('feh_ibg_black'); +feh_stop(); + +feh_start('--image-bg white', 'test/bg/transparency'); +test_scr('feh_ibg_white'); +feh_stop(); unlink('test/bg/exact/.tc/in.txt'); rmdir('test/bg/exact/.tc'); diff --git a/test/scr/feh_ibg_black b/test/scr/feh_ibg_black new file mode 100644 index 0000000..04f1364 Binary files /dev/null and b/test/scr/feh_ibg_black differ diff --git a/test/scr/feh_ibg_default b/test/scr/feh_ibg_default new file mode 100644 index 0000000..d0555fa Binary files /dev/null and b/test/scr/feh_ibg_default differ diff --git a/test/scr/feh_ibg_white b/test/scr/feh_ibg_white new file mode 100644 index 0000000..70138ff Binary files /dev/null and b/test/scr/feh_ibg_white differ -- cgit v1.2.3