diff options
author | Bryce W. Harrington <b.harrington@samsung.com> | 2013-07-03 22:37:41 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-07-04 09:27:56 +0100 |
commit | 33895904d52f47d0d89156ca1e1ff7cc8f5887d2 (patch) | |
tree | 21fbda58a9236ae86c3929ecacaea38cdb530f49 /test/create-from-png.c | |
parent | 5577223489dc3f6e282c498d70f66f8ee9327474 (diff) | |
download | cairo-33895904d52f47d0d89156ca1e1ff7cc8f5887d2.tar.gz |
test: Add special cases for create-from-png and fallback-resolution
These tests use reference images somewhat differently from other tests,
so treat them as special cases and avoid recommending deleting any of
their files.
Add TODO's to each test to rework them to be more consistent with other
tests.
Signed-off-by: Bryce Harrington <b.harrington@samsung.com>
Diffstat (limited to 'test/create-from-png.c')
-rw-r--r-- | test/create-from-png.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/create-from-png.c b/test/create-from-png.c index f6209568c..2ca1fa2c0 100644 --- a/test/create-from-png.c +++ b/test/create-from-png.c @@ -182,6 +182,7 @@ preamble (cairo_test_context_t *ctx) return result; /* check that loading alpha/opaque PNGs generate the correct surfaces */ + /* TODO: Avoid using target-specific references as sample images */ xasprintf (&filename, "%s/%s", path, "create-from-png.alpha.ref.png"); surface = cairo_image_surface_create_from_png (filename); if (cairo_surface_status (surface)) { @@ -223,6 +224,7 @@ preamble (cairo_test_context_t *ctx) return result; /* check paletted PNGs */ + /* TODO: Avoid using target-specific references as sample images */ xasprintf (&filename, "%s/%s", path, "create-from-png.indexed-alpha.ref.png"); surface = cairo_image_surface_create_from_png (filename); if (cairo_surface_status (surface)) { @@ -243,6 +245,7 @@ preamble (cairo_test_context_t *ctx) if (result != CAIRO_TEST_SUCCESS) return result; + /* TODO: Avoid using target-specific references as sample images */ xasprintf (&filename, "%s/%s", path, "create-from-png.indexed.ref.png"); surface = cairo_image_surface_create_from_png (filename); if (cairo_surface_status (surface)) { @@ -264,6 +267,7 @@ preamble (cairo_test_context_t *ctx) return result; /* check grayscale PNGs */ + /* TODO: Avoid using target-specific references as sample images */ xasprintf (&filename, "%s/%s", path, "create-from-png.gray-alpha.ref.png"); surface = cairo_image_surface_create_from_png (filename); if (cairo_surface_status (surface)) { @@ -284,6 +288,7 @@ preamble (cairo_test_context_t *ctx) if (result != CAIRO_TEST_SUCCESS) return result; + /* TODO: Avoid using target-specific references as sample images */ xasprintf (&filename, "%s/%s", path, "create-from-png.gray.ref.png"); surface = cairo_image_surface_create_from_png (filename); if (cairo_surface_status (surface)) { |