diff options
author | Karl Tomlinson <karlt+@karlt.net> | 2010-07-17 10:13:22 +1200 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-07-17 11:22:28 +0100 |
commit | 33ac2035876aeb9215ca0bdaaeea5265fcee61f8 (patch) | |
tree | d808b3f5e9fdb8348967a11b7aea6dad510b08ac | |
parent | bac5c28a18af5d43c96f0b64d1c7235da3f02779 (diff) |
test: use the surface size expected in get-clip phase "No clip set"
https://bugs.freedesktop.org/show_bug.cgi?id=29121
-rw-r--r-- | test/get-clip.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/test/get-clip.c b/test/get-clip.c index d2544956..18472299 100644 --- a/test/get-clip.c +++ b/test/get-clip.c @@ -89,6 +89,8 @@ check_clip_extents (const cairo_test_context_t *ctx, return 0; } +#define SIZE 100 + static cairo_test_status_t preamble (cairo_test_context_t *ctx) { @@ -98,7 +100,7 @@ preamble (cairo_test_context_t *ctx) const char *phase; cairo_status_t status; - surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, 0, 0); + surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, SIZE, SIZE); cr = cairo_create (surface); cairo_surface_destroy (surface); @@ -108,8 +110,8 @@ preamble (cairo_test_context_t *ctx) phase = "No clip set"; rectangle_list = cairo_copy_clip_rectangle_list (cr); if (! check_count (ctx, phase, rectangle_list, 1) || - ! check_clip_extents (ctx, phase, cr, 0, 0, 100, 100) || - ! check_rectangles_contain (ctx, phase, rectangle_list, 0, 0, 100, 100)) + ! check_clip_extents (ctx, phase, cr, 0, 0, SIZE, SIZE) || + ! check_rectangles_contain (ctx, phase, rectangle_list, 0, 0, SIZE, SIZE)) { goto FAIL; } |