summaryrefslogtreecommitdiff
path: root/test/bug-75705.c
diff options
context:
space:
mode:
authorMassimo Valentini <mvalentini@src.gnome.org>2015-01-16 12:56:04 +0100
committerUli Schlachter <psychon@znc.in>2019-05-10 15:02:54 +0000
commit82a2477a4a305cdcd8f331e6539db8742e0829e6 (patch)
tree182aa84eaf21fd23ceadac4d402eb3dd135d9666 /test/bug-75705.c
parent269522fbe999b44e3f18179d59f7c835620894eb (diff)
downloadcairo-82a2477a4a305cdcd8f331e6539db8742e0829e6.tar.gz
add a test to exercise tor22 spans allocation code path
Diffstat (limited to 'test/bug-75705.c')
-rw-r--r--test/bug-75705.c32
1 files changed, 32 insertions, 0 deletions
diff --git a/test/bug-75705.c b/test/bug-75705.c
new file mode 100644
index 000000000..e140ff993
--- /dev/null
+++ b/test/bug-75705.c
@@ -0,0 +1,32 @@
+#include "cairo-test.h"
+
+static cairo_test_status_t
+draw (cairo_t *cr, int width, int height)
+{
+ double dsh[2] = {1,3};
+
+ cairo_set_source_rgba (cr, 0, 0, 0, 1);
+ cairo_paint (cr);
+
+ cairo_set_line_cap (cr, CAIRO_LINE_CAP_ROUND);
+
+ cairo_move_to (cr, 3, 3);
+ /* struct glitter_scan_converter spans_embedded array size is 64 */
+ cairo_line_to (cr, 65+3, 3);
+
+ cairo_set_antialias (cr, CAIRO_ANTIALIAS_FAST);
+ cairo_set_tolerance (cr, 1);
+
+ cairo_set_dash (cr, dsh, 2, 0);
+ cairo_set_line_width (cr, 2);
+
+ cairo_stroke (cr);
+ return CAIRO_TEST_SUCCESS;
+}
+
+CAIRO_TEST (bug_75705,
+ "Bug 75705 (exercise tor22-scan-converter)",
+ "dash, stroke, antialias", /* keywords */
+ NULL, /* requirements */
+ 72, 8,
+ NULL, draw)