diff options
author | Carl Worth <cworth@cworth.org> | 2007-04-27 16:41:17 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2007-04-27 16:41:17 -0700 |
commit | 2dcfb944b044172640a3784246d6b3129b686b60 (patch) | |
tree | feef269072cd48f5608bdb9899fbf69534328fd8 /boilerplate | |
parent | 179e3399101b5a0daa907dcfe1f9f11ae8fe691e (diff) |
Don't test PDF tests known to fail due to poppler limitations
The following four tests are disabled:
gradient-alpha, linear-gradient, text-pattern, trap-clip
We don't use XFAIL as that would disable all backends, (but
we can still usefully use these tests on backends other than
PDF).
Diffstat (limited to 'boilerplate')
-rw-r--r-- | boilerplate/cairo-boilerplate-pdf.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/boilerplate/cairo-boilerplate-pdf.c b/boilerplate/cairo-boilerplate-pdf.c index e0a610e7..0d8ac1a8 100644 --- a/boilerplate/cairo-boilerplate-pdf.c +++ b/boilerplate/cairo-boilerplate-pdf.c @@ -42,6 +42,14 @@ typedef struct _pdf_target_closure cairo_surface_t *target; } pdf_target_closure_t; +#define ARRAY_LENGTH(__array) ((int) (sizeof (__array) / sizeof (__array[0]))) +static const char *pdf_ignored_tests[] = { + "gradient-alpha", + "linear-gradient", + "text-pattern", + "trap-clip" +}; + cairo_surface_t * _cairo_boilerplate_pdf_create_surface (const char *name, cairo_content_t content, @@ -53,6 +61,13 @@ _cairo_boilerplate_pdf_create_surface (const char *name, pdf_target_closure_t *ptc; cairo_surface_t *surface; + if (mode == CAIRO_BOILERPLATE_MODE_TEST) { + int i; + for (i = 0; i < ARRAY_LENGTH (pdf_ignored_tests); i++) + if (strcmp (name, pdf_ignored_tests[i]) == 0) + return NULL; + } + /* Sanitize back to a real cairo_content_t value. */ if (content == CAIRO_TEST_CONTENT_COLOR_ALPHA_FLATTENED) content = CAIRO_CONTENT_COLOR_ALPHA; |