summaryrefslogtreecommitdiff
path: root/test/ft-text-antialias-none.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/ft-text-antialias-none.c')
-rw-r--r--test/ft-text-antialias-none.c20
1 files changed, 6 insertions, 14 deletions
diff --git a/test/ft-text-antialias-none.c b/test/ft-text-antialias-none.c
index e139b2f6..a6ab41c5 100644
--- a/test/ft-text-antialias-none.c
+++ b/test/ft-text-antialias-none.c
@@ -33,15 +33,6 @@
#define HEIGHT 30
#define TEXT_SIZE 12
-static cairo_test_draw_function_t draw;
-
-static const cairo_test_t test = {
- "ft-text-antialias-none",
- "Tests text rendering with no antialiasing",
- WIDTH, HEIGHT,
- draw
-};
-
static cairo_status_t
create_scaled_font (cairo_t * cr,
cairo_scaled_font_t **out)
@@ -147,8 +138,9 @@ draw (cairo_t *cr, int width, int height)
return CAIRO_TEST_SUCCESS;
}
-int
-main (void)
-{
- return cairo_test (&test);
-}
+CAIRO_TEST (ft_text_antialias_none,
+ "Tests text rendering with no antialiasing",
+ "ft, text", /* keywords */
+ "target=raster", /* requirements */
+ WIDTH, HEIGHT,
+ NULL, draw)