summaryrefslogtreecommitdiff
path: root/test/gradient-constant-alpha.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/gradient-constant-alpha.c')
-rw-r--r--test/gradient-constant-alpha.c20
1 files changed, 6 insertions, 14 deletions
diff --git a/test/gradient-constant-alpha.c b/test/gradient-constant-alpha.c
index 0607621e..7640b6eb 100644
--- a/test/gradient-constant-alpha.c
+++ b/test/gradient-constant-alpha.c
@@ -27,15 +27,6 @@
#include "cairo-test.h"
-static cairo_test_draw_function_t draw;
-
-static const cairo_test_t test = {
- "gradient-constant-alpha",
- "Tests drawing of a gradient with constant alpha values in the color stops\n",
- 10, 10,
- draw
-};
-
static cairo_test_status_t
draw (cairo_t *cr, int width, int height)
{
@@ -62,8 +53,9 @@ draw (cairo_t *cr, int width, int height)
return CAIRO_TEST_SUCCESS;
}
-int
-main (void)
-{
- return cairo_test (&test);
-}
+CAIRO_TEST (gradient_constant_alpha,
+ "Tests drawing of a gradient with constant alpha values in the color stops",
+ "gradient, alpha", /* keywords */
+ NULL,
+ 10, 10,
+ NULL, draw)