mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-02-12 12:20:32 +01:00
Tests/pdf-operator-text: Check if pdf target is enabled
The same is done in pdf-mime-data.c
This commit is contained in:
parent
83e5d95ec2
commit
1293ec674d
1 changed files with 10 additions and 1 deletions
|
|
@ -150,9 +150,18 @@ draw (cairo_t *cr, int width, int height)
|
|||
return CAIRO_TEST_SUCCESS;
|
||||
}
|
||||
|
||||
static cairo_test_status_t
|
||||
preamble (cairo_test_context_t *ctx)
|
||||
{
|
||||
if (! cairo_test_is_target_enabled (ctx, "pdf"))
|
||||
return CAIRO_TEST_UNTESTED;
|
||||
|
||||
return CAIRO_TEST_SUCCESS;
|
||||
}
|
||||
|
||||
CAIRO_TEST (pdf_operators_text,
|
||||
"Test pdf-operators.c glyph positioning",
|
||||
"pdf", /* keywords */
|
||||
NULL, /* requirements */
|
||||
WIDTH, HEIGHT,
|
||||
NULL, draw)
|
||||
preamble, draw)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue