Add image/jp2 to mime-data test

This commit is contained in:
Adrian Johnson 2008-11-23 19:29:26 +10:30
parent 7fdb712cba
commit b87d81ef0b
6 changed files with 6 additions and 1 deletions

BIN
test/jp2.jp2 Normal file

Binary file not shown.

View file

@ -116,6 +116,7 @@ draw (cairo_t *cr, int width, int height)
{
const char jpg_filename[] = "jpeg.jpg";
const char png_filename[] = "png.png";
const char jp2_filename[] = "jp2.jp2";
cairo_test_status_t status;
status = paint_file (cr, jpg_filename, CAIRO_MIME_TYPE_JPEG, 0, 0);
@ -126,6 +127,10 @@ draw (cairo_t *cr, int width, int height)
if (status)
return status;
status = paint_file (cr, jp2_filename, CAIRO_MIME_TYPE_JP2, 0, 100);
if (status)
return status;
return CAIRO_TEST_SUCCESS;
}
@ -133,5 +138,5 @@ CAIRO_TEST (mime_data,
"Check that the mime-data embedding works",
"jpeg, api", /* keywords */
NULL, /* requirements */
200, 100,
200, 150,
NULL, draw)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 KiB

After

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 KiB

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 155 B

After

Width:  |  Height:  |  Size: 185 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6 KiB

After

Width:  |  Height:  |  Size: 6.1 KiB