summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2008-11-04 13:41:02 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2008-11-04 13:41:02 +0000
commit9900a2adf3e43e752bd421f00e81873b41db4c30 (patch)
tree8dcd5321bb19401c24b07edb8750198887ffe416 /test
parentc13a09ddb411287224c15728b14f23fef472f7d0 (diff)
[test] Update mime-data jpeg reference data.
<adrianj> ickle_: If we are going to use a different image for jpeg in mime-data maybe we could create a jpg that contains the text "jpeg". That way when support for the other image formats is added the mime-data test could have one image for each type with each image and it is easy to see that each image is the correct one.
Diffstat (limited to 'test')
-rw-r--r--test/jpeg.jpgbin0 -> 2316 bytes
-rw-r--r--test/mime-data.c6
-rw-r--r--test/mime-data.pdf.ref.pngbin96 -> 4345 bytes
-rw-r--r--test/mime-data.ps.ref.pngbin368 -> 4345 bytes
-rw-r--r--test/mime-data.ref.pngbin263 -> 127 bytes
5 files changed, 3 insertions, 3 deletions
diff --git a/test/jpeg.jpg b/test/jpeg.jpg
new file mode 100644
index 00000000..a1bac1c8
--- /dev/null
+++ b/test/jpeg.jpg
Binary files differ
diff --git a/test/mime-data.c b/test/mime-data.c
index dd1e0955..a387d672 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 f04fe6ce..cf53a610 100644
--- a/test/mime-data.pdf.ref.png
+++ b/test/mime-data.pdf.ref.png
Binary files differ
diff --git a/test/mime-data.ps.ref.png b/test/mime-data.ps.ref.png
index 43d10320..cf53a610 100644
--- a/test/mime-data.ps.ref.png
+++ b/test/mime-data.ps.ref.png
Binary files differ
diff --git a/test/mime-data.ref.png b/test/mime-data.ref.png
index cc13baf0..782a2eef 100644
--- a/test/mime-data.ref.png
+++ b/test/mime-data.ref.png
Binary files differ