[test] Update big-line and remove XFAIL

Now that we use polygon clipping, output geometry should no longer exceed
the 2^16 limits imposed by pixman. For the image backend, we now use spans
for stroking and for the xlib backend we have to double check the range on
the output trapezoids. In short, cairo should pass this test.
This commit is contained in:
Chris Wilson 2009-09-11 14:19:38 +01:00
parent b495e7eb2e
commit 6e78409417
9 changed files with 12 additions and 12 deletions

View file

@ -138,10 +138,10 @@ REFERENCE_IMAGES = \
alpha-similar.rgb24.ref.png \
alpha-similar.svg.argb32.xfail.png \
alpha-similar.svg.rgb24.xfail.png \
big-line.ps.argb32.ref.png \
big-line.ps.rgb24.ref.png \
big-line.quartz.ref.png \
big-line.quartz.rgb24.ref.png \
big-line.ref.png \
big-line.ps.ref.png \
big-line.xlib.png \
big-line.xlib-fallback.png \
bilevel-image.ref.png \
bitmap-font.ref.png \
bitmap-font.rgb24.ref.png \

View file

@ -28,35 +28,35 @@
static cairo_test_status_t
draw (cairo_t *cr, int width, int height)
{
cairo_new_path (cr);
cairo_set_source_rgb (cr, 1, 1, 1);
cairo_paint (cr);
cairo_set_source_rgb (cr, 1, 1, 0);
cairo_move_to (cr, 50, 50);
cairo_line_to (cr, 50000, 50000);
cairo_rel_line_to (cr, 50000, 50000);
cairo_stroke (cr);
cairo_set_source_rgb (cr, 1, 0, 0);
cairo_move_to (cr, 50, 50);
cairo_line_to (cr, -50000, 50000);
cairo_rel_line_to (cr, -50000, 50000);
cairo_stroke (cr);
cairo_set_source_rgb (cr, 0, 1, 0);
cairo_move_to (cr, 50, 50);
cairo_line_to (cr, 50000, -50000);
cairo_rel_line_to (cr, 50000, -50000);
cairo_stroke (cr);
cairo_set_source_rgb (cr, 0, 0, 1);
cairo_move_to (cr, 50, 50);
cairo_line_to (cr, -50000, -50000);
cairo_rel_line_to (cr, -50000, -50000);
cairo_stroke (cr);
return CAIRO_TEST_SUCCESS;
}
CAIRO_TEST (big_line,
"Test drawing of simple lines with positive and negative coordinates > 2^16\n"
"This currently fails because of 16-bit limitations in pixman.",
"line", /* keywords */
"Test drawing of simple lines with positive and negative coordinates > 2^16",
"stroke, line", /* keywords */
NULL, /* requirements */
100, 100,
NULL, draw)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 977 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 709 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 941 B

BIN
test/big-line.ref.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 977 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 723 B

BIN
test/big-line.xlib.ref.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 933 B