summaryrefslogtreecommitdiff
path: root/test/gradient-zero-stops.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/gradient-zero-stops.c')
-rw-r--r--test/gradient-zero-stops.c22
1 files changed, 7 insertions, 15 deletions
diff --git a/test/gradient-zero-stops.c b/test/gradient-zero-stops.c
index 0605ed0f..57a91c53 100644
--- a/test/gradient-zero-stops.c
+++ b/test/gradient-zero-stops.c
@@ -32,20 +32,11 @@
* https://bugzilla.mozilla.org/show_bug.cgi?id=407104
*/
-static cairo_test_draw_function_t draw;
-
-static const cairo_test_t test = {
- "gradient-zero-stops",
- "Verifies that gradients with no stops dont cause problems.",
- 2, 2,
- draw
-};
-
static cairo_test_status_t
draw (cairo_t *cr, int width, int height)
{
cairo_pattern_t *pat;
-
+
pat = cairo_pattern_create_linear (0., 0., 1., 1.);
cairo_set_source (cr, pat);
cairo_paint (cr);
@@ -59,8 +50,9 @@ draw (cairo_t *cr, int width, int height)
return CAIRO_TEST_SUCCESS;
}
-int
-main (void)
-{
- return cairo_test (&test);
-}
+CAIRO_TEST (gradient_zero_stops,
+ "Verifies that gradients with no stops don't cause problems.",
+ "gradient", /* keywords */
+ NULL, /* requirements */
+ 2, 2,
+ NULL, draw)