summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Otte <otte@gnome.org>2009-11-02 12:51:14 +0100
committerBenjamin Otte <otte@gnome.org>2009-11-02 12:51:14 +0100
commit942a15ba9e85fa3297ad6e65270928ad3c1c0a42 (patch)
tree0b5d5f81b3c381b1e45f0be1c36ff17ccb232112
parent19c411a5b8b84d31516d9c85642ad55ef5d29aba (diff)
[test] Update upscale test to expose an Xlib failure
By filling the background with grey, we can see that Xlib fills areas with black that it shouldn't. Xlib therefore now fails this test.
-rw-r--r--test/surface-pattern-scale-up.c4
-rw-r--r--test/surface-pattern-scale-up.pdf.ref.pngbin2793 -> 3482 bytes
-rw-r--r--test/surface-pattern-scale-up.ps2.ref.pngbin943 -> 913 bytes
-rw-r--r--test/surface-pattern-scale-up.ps3.ref.pngbin943 -> 913 bytes
-rw-r--r--test/surface-pattern-scale-up.ref.pngbin4061 -> 4017 bytes
5 files changed, 3 insertions, 1 deletions
diff --git a/test/surface-pattern-scale-up.c b/test/surface-pattern-scale-up.c
index 3217f844..26e75c8c 100644
--- a/test/surface-pattern-scale-up.c
+++ b/test/surface-pattern-scale-up.c
@@ -40,7 +40,9 @@ draw (cairo_t *cr, int width, int height)
cairo_t * cr_surface;
int surface_size = 6;
- cairo_set_source_rgb (cr, 0, 0, 0);
+ /* Fill the background with grey, so that it's easily visible when
+ * things get overdrawn */
+ cairo_set_source_rgb (cr, 0.5, 0.5, 0.5);
cairo_paint (cr);
/* Create an image surface with my favorite four colors in each
diff --git a/test/surface-pattern-scale-up.pdf.ref.png b/test/surface-pattern-scale-up.pdf.ref.png
index 97472fa8..593d058a 100644
--- a/test/surface-pattern-scale-up.pdf.ref.png
+++ b/test/surface-pattern-scale-up.pdf.ref.png
Binary files differ
diff --git a/test/surface-pattern-scale-up.ps2.ref.png b/test/surface-pattern-scale-up.ps2.ref.png
index 7f672880..f2eac7a7 100644
--- a/test/surface-pattern-scale-up.ps2.ref.png
+++ b/test/surface-pattern-scale-up.ps2.ref.png
Binary files differ
diff --git a/test/surface-pattern-scale-up.ps3.ref.png b/test/surface-pattern-scale-up.ps3.ref.png
index 7f672880..f2eac7a7 100644
--- a/test/surface-pattern-scale-up.ps3.ref.png
+++ b/test/surface-pattern-scale-up.ps3.ref.png
Binary files differ
diff --git a/test/surface-pattern-scale-up.ref.png b/test/surface-pattern-scale-up.ref.png
index 821f5402..41aafaf6 100644
--- a/test/surface-pattern-scale-up.ref.png
+++ b/test/surface-pattern-scale-up.ref.png
Binary files differ