diff --git a/test/jpeg.jpg b/test/jpeg.jpg new file mode 100644 index 000000000..a1bac1c81 Binary files /dev/null and b/test/jpeg.jpg differ diff --git a/test/mime-data.c b/test/mime-data.c index dd1e0955f..a387d6726 100644 --- a/test/mime-data.c +++ b/test/mime-data.c @@ -39,7 +39,7 @@ read_jpg_file (const cairo_test_context_t *ctx, * when the JPEG representation is used in preference to the image * surface. */ - const char jpg_filename[] = "scarab.jpg"; + const char jpg_filename[] = "jpeg.jpg"; FILE *file; unsigned char *buf; unsigned int len; @@ -92,7 +92,7 @@ draw (cairo_t *cr, int width, int height) return cairo_test_status_from_status (ctx, status); } - image = cairo_test_create_surface_from_png (ctx, "romedalen.png"); + image = cairo_image_surface_create (CAIRO_FORMAT_RGB24, 200, 50); status = cairo_surface_set_mime_data (image, CAIRO_MIME_TYPE_JPEG, jpg_data, jpg_len, free); if (status) { @@ -111,5 +111,5 @@ CAIRO_TEST (mime_data, "Check that the mime-data embedding works", "jpeg, api", /* keywords */ NULL, /* requirements */ - 10, 10, + 200, 50, NULL, draw) diff --git a/test/mime-data.pdf.ref.png b/test/mime-data.pdf.ref.png index f04fe6ce9..cf53a6103 100644 Binary files a/test/mime-data.pdf.ref.png and b/test/mime-data.pdf.ref.png differ diff --git a/test/mime-data.ps.ref.png b/test/mime-data.ps.ref.png index 43d103205..cf53a6103 100644 Binary files a/test/mime-data.ps.ref.png and b/test/mime-data.ps.ref.png differ diff --git a/test/mime-data.ref.png b/test/mime-data.ref.png index cc13baf08..782a2eef6 100644 Binary files a/test/mime-data.ref.png and b/test/mime-data.ref.png differ