From 95fccf0010256b0dc1cdfd9342cf877bc7feef6b Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 3 Oct 2010 00:03:18 +0200 Subject: More wallpaper tests, should cover all possible cases now --- test/bg_large_h.png | Bin 0 -> 229116 bytes test/bg_large_h_center.png | Bin 0 -> 23632 bytes test/bg_large_h_fill.png | Bin 0 -> 84198 bytes test/bg_large_h_max.png | Bin 0 -> 35271 bytes test/bg_large_h_scale.png | Bin 0 -> 94912 bytes test/bg_large_h_tile.png | Bin 0 -> 13552 bytes test/bg_large_w.png | Bin 0 -> 87657 bytes test/bg_large_w_center.png | Bin 0 -> 29104 bytes test/bg_large_w_fill.png | Bin 0 -> 125501 bytes test/bg_large_w_max.png | Bin 0 -> 17916 bytes test/bg_large_w_scale.png | Bin 0 -> 102207 bytes test/bg_large_w_tile.png | Bin 0 -> 19070 bytes test/bg_small_h.png | Bin 0 -> 2453 bytes test/bg_small_h_center.png | Bin 0 -> 2243 bytes test/bg_small_h_fill.png | Bin 0 -> 77707 bytes test/bg_small_h_max.png | Bin 0 -> 40925 bytes test/bg_small_h_scale.png | Bin 0 -> 69223 bytes test/bg_small_h_tile.png | Bin 0 -> 9703 bytes test/bg_small_w.png | Bin 0 -> 1229 bytes test/bg_small_w_center.png | Bin 0 -> 1919 bytes test/bg_small_w_fill.png | Bin 0 -> 68182 bytes test/bg_small_w_max.png | Bin 0 -> 35987 bytes test/bg_small_w_scale.png | Bin 0 -> 68174 bytes test/bg_small_w_tile.png | Bin 0 -> 12148 bytes test/feh-bg.i | 14 +++++++++++++- 25 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 test/bg_large_h.png create mode 100644 test/bg_large_h_center.png create mode 100644 test/bg_large_h_fill.png create mode 100644 test/bg_large_h_max.png create mode 100644 test/bg_large_h_scale.png create mode 100644 test/bg_large_h_tile.png create mode 100644 test/bg_large_w.png create mode 100644 test/bg_large_w_center.png create mode 100644 test/bg_large_w_fill.png create mode 100644 test/bg_large_w_max.png create mode 100644 test/bg_large_w_scale.png create mode 100644 test/bg_large_w_tile.png create mode 100644 test/bg_small_h.png create mode 100644 test/bg_small_h_center.png create mode 100644 test/bg_small_h_fill.png create mode 100644 test/bg_small_h_max.png create mode 100644 test/bg_small_h_scale.png create mode 100644 test/bg_small_h_tile.png create mode 100644 test/bg_small_w.png create mode 100644 test/bg_small_w_center.png create mode 100644 test/bg_small_w_fill.png create mode 100644 test/bg_small_w_max.png create mode 100644 test/bg_small_w_scale.png create mode 100644 test/bg_small_w_tile.png (limited to 'test') diff --git a/test/bg_large_h.png b/test/bg_large_h.png new file mode 100644 index 0000000..8167288 Binary files /dev/null and b/test/bg_large_h.png differ diff --git a/test/bg_large_h_center.png b/test/bg_large_h_center.png new file mode 100644 index 0000000..711704f Binary files /dev/null and b/test/bg_large_h_center.png differ diff --git a/test/bg_large_h_fill.png b/test/bg_large_h_fill.png new file mode 100644 index 0000000..8503fc8 Binary files /dev/null and b/test/bg_large_h_fill.png differ diff --git a/test/bg_large_h_max.png b/test/bg_large_h_max.png new file mode 100644 index 0000000..bbad392 Binary files /dev/null and b/test/bg_large_h_max.png differ diff --git a/test/bg_large_h_scale.png b/test/bg_large_h_scale.png new file mode 100644 index 0000000..5e88336 Binary files /dev/null and b/test/bg_large_h_scale.png differ diff --git a/test/bg_large_h_tile.png b/test/bg_large_h_tile.png new file mode 100644 index 0000000..f16d150 Binary files /dev/null and b/test/bg_large_h_tile.png differ diff --git a/test/bg_large_w.png b/test/bg_large_w.png new file mode 100644 index 0000000..dc1f30b Binary files /dev/null and b/test/bg_large_w.png differ diff --git a/test/bg_large_w_center.png b/test/bg_large_w_center.png new file mode 100644 index 0000000..1f425ea Binary files /dev/null and b/test/bg_large_w_center.png differ diff --git a/test/bg_large_w_fill.png b/test/bg_large_w_fill.png new file mode 100644 index 0000000..61b5448 Binary files /dev/null and b/test/bg_large_w_fill.png differ diff --git a/test/bg_large_w_max.png b/test/bg_large_w_max.png new file mode 100644 index 0000000..6b3b450 Binary files /dev/null and b/test/bg_large_w_max.png differ diff --git a/test/bg_large_w_scale.png b/test/bg_large_w_scale.png new file mode 100644 index 0000000..20cfab3 Binary files /dev/null and b/test/bg_large_w_scale.png differ diff --git a/test/bg_large_w_tile.png b/test/bg_large_w_tile.png new file mode 100644 index 0000000..16855f7 Binary files /dev/null and b/test/bg_large_w_tile.png differ diff --git a/test/bg_small_h.png b/test/bg_small_h.png new file mode 100644 index 0000000..74f9b29 Binary files /dev/null and b/test/bg_small_h.png differ diff --git a/test/bg_small_h_center.png b/test/bg_small_h_center.png new file mode 100644 index 0000000..3071ee6 Binary files /dev/null and b/test/bg_small_h_center.png differ diff --git a/test/bg_small_h_fill.png b/test/bg_small_h_fill.png new file mode 100644 index 0000000..76b2702 Binary files /dev/null and b/test/bg_small_h_fill.png differ diff --git a/test/bg_small_h_max.png b/test/bg_small_h_max.png new file mode 100644 index 0000000..9caa5d3 Binary files /dev/null and b/test/bg_small_h_max.png differ diff --git a/test/bg_small_h_scale.png b/test/bg_small_h_scale.png new file mode 100644 index 0000000..d51d64a Binary files /dev/null and b/test/bg_small_h_scale.png differ diff --git a/test/bg_small_h_tile.png b/test/bg_small_h_tile.png new file mode 100644 index 0000000..5f66296 Binary files /dev/null and b/test/bg_small_h_tile.png differ diff --git a/test/bg_small_w.png b/test/bg_small_w.png new file mode 100644 index 0000000..d281c6b Binary files /dev/null and b/test/bg_small_w.png differ diff --git a/test/bg_small_w_center.png b/test/bg_small_w_center.png new file mode 100644 index 0000000..d5635c3 Binary files /dev/null and b/test/bg_small_w_center.png differ diff --git a/test/bg_small_w_fill.png b/test/bg_small_w_fill.png new file mode 100644 index 0000000..812bb18 Binary files /dev/null and b/test/bg_small_w_fill.png differ diff --git a/test/bg_small_w_max.png b/test/bg_small_w_max.png new file mode 100644 index 0000000..d38f45e Binary files /dev/null and b/test/bg_small_w_max.png differ diff --git a/test/bg_small_w_scale.png b/test/bg_small_w_scale.png new file mode 100644 index 0000000..2688754 Binary files /dev/null and b/test/bg_small_w_scale.png differ diff --git a/test/bg_small_w_tile.png b/test/bg_small_w_tile.png new file mode 100644 index 0000000..b4bf86f Binary files /dev/null and b/test/bg_small_w_tile.png differ diff --git a/test/feh-bg.i b/test/feh-bg.i index b26feff..63aecda 100755 --- a/test/feh-bg.i +++ b/test/feh-bg.i @@ -4,7 +4,7 @@ use warnings; use 5.010; use GD qw/:DEFAULT :cmp/; -use Test::More tests => 30; +use Test::More tests => 70; use Time::HiRes qw/sleep/; sub set_bg { @@ -47,6 +47,18 @@ for my $mode (qw( center fill max scale tile )) { set_bg($mode, 'bg_451x500.png'); check_bg("bg_451x500_${mode}.png"); + + set_bg($mode, 'bg_small_w.png'); + check_bg("bg_small_w_${mode}.png"); + + set_bg($mode, 'bg_small_h.png'); + check_bg("bg_small_h_${mode}.png"); + + set_bg($mode, 'bg_large_w.png'); + check_bg("bg_large_w_${mode}.png"); + + set_bg($mode, 'bg_large_h.png'); + check_bg("bg_large_h_${mode}.png"); } unlink("/tmp/feh_${$}.png"); -- cgit v1.2.3