[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.
|
|
@ -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 \
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 977 B |
|
Before Width: | Height: | Size: 709 B |
|
Before Width: | Height: | Size: 1 KiB |
|
Before Width: | Height: | Size: 941 B |
BIN
test/big-line.ref.png
Normal file
|
After Width: | Height: | Size: 977 B |
BIN
test/big-line.xlib-fallback.ref.png
Normal file
|
After Width: | Height: | Size: 723 B |
BIN
test/big-line.xlib.ref.png
Normal file
|
After Width: | Height: | Size: 933 B |