summaryrefslogtreecommitdiff
path: root/test/clip-all.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2007-11-05 22:22:42 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2007-11-06 13:28:10 +0000
commit641215b2b018e98b298db5042360e2e22ab5a0aa (patch)
tree63f785cab76a35c94556177ea8a82c699862b38c /test/clip-all.c
parent55b530ffef2bce96d57919563c6c9b58f02f8fb8 (diff)
downloadcairo-641215b2b018e98b298db5042360e2e22ab5a0aa.tar.gz
[test/clip-all] Combine text and everything clipped out.
https://bugs.freedesktop.org/show_bug.cgi?id=13084 demonstrates a regression where the clip is ignored by the xlib backend whilst rendering text. Therefore we extend the current test cases to combine a clip that represents everything clipped out with the rendering of text. For completeness, we add a new test case that exactly mimics the sequence of cairo operations that lead to the discovery of this bug - namely the rendering of text with an empty clip path.
Diffstat (limited to 'test/clip-all.c')
-rw-r--r--test/clip-all.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/clip-all.c b/test/clip-all.c
index 2ff883d55..b38e7b9b9 100644
--- a/test/clip-all.c
+++ b/test/clip-all.c
@@ -62,6 +62,16 @@ draw (cairo_t *cr, int width, int height)
cairo_set_source_rgb (cr, 1, 1, 0);
cairo_fill (cr);
+ /* https://bugs.freedesktop.org/show_bug.cgi?id=13084 */
+ cairo_select_font_face (cr,
+ "Bitstream Vera Sans",
+ CAIRO_FONT_SLANT_NORMAL,
+ CAIRO_FONT_WEIGHT_NORMAL);
+
+ cairo_move_to (cr, 0., SIZE);
+ cairo_show_text (cr, "cairo");
+
+
return CAIRO_TEST_SUCCESS;
}