diff options
Diffstat (limited to 'test/gradient-alpha.c')
| -rw-r--r-- | test/gradient-alpha.c | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/test/gradient-alpha.c b/test/gradient-alpha.c index 38a282f3..24cd3245 100644 --- a/test/gradient-alpha.c +++ b/test/gradient-alpha.c @@ -25,15 +25,6 @@ #include "cairo-test.h" -static cairo_test_draw_function_t draw; - -static const cairo_test_t test = { - "gradient-alpha", - "Tests drawing of a gradient with various alpha values in the color stops\n", - 10, 10, - draw -}; - static cairo_test_status_t draw (cairo_t *cr, int width, int height) { @@ -57,8 +48,9 @@ draw (cairo_t *cr, int width, int height) return CAIRO_TEST_SUCCESS; } -int -main (void) -{ - return cairo_test (&test); -} +CAIRO_TEST (gradient_alpha, + "Tests drawing of a gradient with various alpha values in the color stops", + "gradient, alpha", /* keywords */ + NULL, /* requirements */ + 10, 10, + NULL, draw) |
