summaryrefslogtreecommitdiff
path: root/test/linear-gradient.c
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2006-03-10 16:37:50 -0800
committerCarl Worth <cworth@cworth.org>2006-05-03 23:44:59 -0700
commit40b39dddf9cd919fb2f456a8e296a60cc8296fbf (patch)
treee8d427f9fbf3d03df89e3774c4a06ca26ce3a218 /test/linear-gradient.c
parentb3e2252b94297b7fbdbd3a3776781ea6df7c8bc6 (diff)
Shrink the size of a couple of tests (and update reference images).
Shrink linear-gradient and text-pattern test outuput. The real motivation for this is to hide an annoying difference in the gradient output that occurs when under the influence of a device offsets. My opinion is that the gradient output should not change due to just an integer offset, but we currently don't have a precise gradient specification, so this minor deviation really isn't relevant. A better fix for this might have been to make the test suite more forgiving of tiny differences, (perhaps on a per-test basis), but another advantage of shrinking these tests is that they now run a lot faster. It is true that these tests now also exercise fewer different output values, but that's not the designed purpose of the tests so I don't feel bad about losing that characteristic.
Diffstat (limited to 'test/linear-gradient.c')
-rw-r--r--test/linear-gradient.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/linear-gradient.c b/test/linear-gradient.c
index 38ba559d..686a56cc 100644
--- a/test/linear-gradient.c
+++ b/test/linear-gradient.c
@@ -47,9 +47,9 @@ static const double rotate_angles[] = { 0, 45, 90 };
static const int n_stops[] = { 2, 3 };
#define N_N_STOPS 2
-#define UNIT_SIZE 75
-#define UNIT_SIZE 75
-#define PAD 5
+#define UNIT_SIZE 6
+#define UNIT_SIZE 6
+#define PAD 1
#define WIDTH N_GRADIENT_ANGLES * UNIT_SIZE + (N_GRADIENT_ANGLES + 1) * PAD
#define HEIGHT N_N_STOPS * N_ROTATE_ANGLES * UNIT_SIZE + (N_N_STOPS * N_ROTATE_ANGLES + 1) * PAD