summaryrefslogtreecommitdiff
path: root/test/user-font-rescale.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/user-font-rescale.c')
-rw-r--r--test/user-font-rescale.c20
1 files changed, 6 insertions, 14 deletions
diff --git a/test/user-font-rescale.c b/test/user-font-rescale.c
index bcee414b..0c324193 100644
--- a/test/user-font-rescale.c
+++ b/test/user-font-rescale.c
@@ -36,15 +36,6 @@
#define HEIGHT ((TEXT_SIZE + 2*BORDER)*3 + BORDER)
#define TEXT "test of rescaled glyphs"
-static cairo_test_draw_function_t draw;
-
-static const cairo_test_t test = {
- "user-font-rescale",
- "Tests drawing text with user defined widths",
- WIDTH, HEIGHT,
- draw
-};
-
static const cairo_user_data_key_t rescale_font_closure_key;
struct rescaled_font {
@@ -364,8 +355,9 @@ draw (cairo_t *cr, int width, int height)
return CAIRO_TEST_SUCCESS;
}
-int
-main (void)
-{
- return cairo_test (&test);
-}
+CAIRO_TEST (user_font_rescale,
+ "Tests drawing text with user defined widths",
+ "user-font, font", /* keywords */
+ NULL, /* requirements */
+ WIDTH, HEIGHT,
+ NULL, draw)