[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.
This commit is contained in:
Chris Wilson 2008-11-04 13:41:02 +00:00
parent c13a09ddb4
commit 9900a2adf3
5 changed files with 3 additions and 3 deletions

BIN
test/jpeg.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

View file

@ -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)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 96 B

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 368 B

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 263 B

After

Width:  |  Height:  |  Size: 127 B