mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-04-20 04:50:41 +02:00
[test] Add test case for bug #7965 to the get-path-extents test
This commit is contained in:
parent
363b1a40b5
commit
c6a067f967
1 changed files with 13 additions and 0 deletions
|
|
@ -114,6 +114,19 @@ draw (cairo_t *cr, int width, int height)
|
|||
!check_extents (phase, cr2, STROKE, EQUALS, 0, 0, 0, 0))
|
||||
return CAIRO_TEST_FAILURE;
|
||||
|
||||
/* http://bugs.freedesktop.org/show_bug.cgi?id=7965 */
|
||||
phase = "A vertical, open path";
|
||||
cairo_save (cr2);
|
||||
cairo_set_line_cap (cr2, CAIRO_LINE_CAP_ROUND);
|
||||
cairo_set_line_join (cr2, CAIRO_LINE_JOIN_ROUND);
|
||||
cairo_move_to (cr2, 0, 180);
|
||||
cairo_line_to (cr2, 750, 180);
|
||||
if (!check_extents (phase, cr2, FILL, EQUALS, 0, 0, 0, 0) ||
|
||||
!check_extents (phase, cr2, STROKE, EQUALS, -5, 175, 760, 10))
|
||||
return CAIRO_TEST_FAILURE;
|
||||
cairo_new_path (cr2);
|
||||
cairo_restore (cr2);
|
||||
|
||||
phase = "Simple rect";
|
||||
cairo_save (cr2);
|
||||
cairo_rectangle (cr2, 10, 10, 80, 80);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue