summaryrefslogtreecommitdiff
path: root/test/mime-data.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2008-11-04 13:00:36 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2008-11-04 13:03:24 +0000
commitc13a09ddb411287224c15728b14f23fef472f7d0 (patch)
tree4c87965abea73cb448d0daad449e32d8b915b165 /test/mime-data.c
parent8407470409ad9cb93263a1c2da7dd7446d3f897e (diff)
downloadcairo-c13a09ddb411287224c15728b14f23fef472f7d0.tar.gz
[test] Use a different jpeg image for mime-data
Detect when we successfully encode the JPEG data from the mime-type by using a completely image.
Diffstat (limited to 'test/mime-data.c')
-rw-r--r--test/mime-data.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/mime-data.c b/test/mime-data.c
index b36491539..dd1e0955f 100644
--- a/test/mime-data.c
+++ b/test/mime-data.c
@@ -35,7 +35,11 @@ read_jpg_file (const cairo_test_context_t *ctx,
unsigned char **data_out,
unsigned int *length_out)
{
- const char jpg_filename[] = "romedalen.jpg";
+ /* Deliberately use a non-matching jpeg image, so that we can identify
+ * when the JPEG representation is used in preference to the image
+ * surface.
+ */
+ const char jpg_filename[] = "scarab.jpg";
FILE *file;
unsigned char *buf;
unsigned int len;