[cairo-commit] test/Makefile.refs test/radial-outer-focus.c test/reference

Chris Wilson ickle at kemper.freedesktop.org
Sat Sep 17 04:31:10 PDT 2011


 test/Makefile.refs                          |    1 +
 test/radial-outer-focus.c                   |    3 +++
 test/reference/radial-outer-focus.xfail.png |binary
 3 files changed, 4 insertions(+)

New commits:
commit fc011bfcb98cfcc86b8ab81a247608e13ed70cdc
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Sat Sep 17 12:28:33 2011 +0100

    test: Record the current status of radial-outer-focus as xfail
    
    Debate rages as to the correct way to handle this. In some ways the
    current output is expected due to the numerical instability in handling
    the inner-focus-on-the-outer-circle. However, the result looks less than
    desirable so some solution (which may not be inside cairo per-se) is
    sought.

diff --git a/test/Makefile.refs b/test/Makefile.refs
index 7400178..bae5edb 100644
--- a/test/Makefile.refs
+++ b/test/Makefile.refs
@@ -2015,6 +2015,7 @@ REFERENCE_IMAGES = \
 	reference/radial-gradient.ref.png \
 	reference/radial-gradient.traps.argb32.ref.png \
 	reference/radial-gradient.traps.rgb24.ref.png \
+	reference/radial-outer-focus.xfail.png \
 	reference/random-clip.base.argb32.ref.png \
 	reference/random-clip.base.rgb24.ref.png \
 	reference/random-clip.ref.png \
diff --git a/test/radial-outer-focus.c b/test/radial-outer-focus.c
index 4286219..e038947 100644
--- a/test/radial-outer-focus.c
+++ b/test/radial-outer-focus.c
@@ -33,6 +33,9 @@ draw (cairo_t *cr, int width, int height)
     double angle;
     int i, j;
 
+    cairo_set_source_rgb (cr, 0, 0, 1);
+    cairo_paint (cr);
+
     angle = 0.0;
 
     for (i = 0; i < 4; i++) {
diff --git a/test/reference/radial-outer-focus.xfail.png b/test/reference/radial-outer-focus.xfail.png
new file mode 100644
index 0000000..53e9f82
Binary files /dev/null and b/test/reference/radial-outer-focus.xfail.png differ


More information about the cairo-commit mailing list