diff options
author | Bastien Nocera <hadess@hadess.net> | 2016-12-18 01:27:02 +0100 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2016-12-19 13:47:34 +0100 |
commit | a700ecc5a93a494e89beea8b1f8a8dcabb1f3d45 (patch) | |
tree | 72beaa7d3f14926b2e18ae8d2a198c0602fd74a5 /tests | |
parent | 5dcc1b8da70d191a2570c0460a7f0d53abee52cd (diff) | |
download | gdk-pixbuf-a700ecc5a93a494e89beea8b1f8a8dcabb1f3d45.tar.gz |
tests: Add test for bug 776105
https://bugzilla.gnome.org/show_bug.cgi?id=776105
Diffstat (limited to 'tests')
-rw-r--r-- | tests/pixbuf-pixdata.c | 4 | ||||
-rw-r--r-- | tests/resources.gresource.xml | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/tests/pixbuf-pixdata.c b/tests/pixbuf-pixdata.c index 558e581d6..31ff4e502 100644 --- a/tests/pixbuf-pixdata.c +++ b/tests/pixbuf-pixdata.c @@ -107,6 +107,10 @@ test_pixdata (void) g_assert_no_error (error); g_object_unref (ref); + ref = gdk_pixbuf_new_from_resource ("/test/resource/icc-profile-compressed.pixdata", &error); + g_assert_no_error (error); + g_object_unref (ref); + path = g_test_get_filename (G_TEST_DIST, "test-image.pixdata", NULL); ref = gdk_pixbuf_new_from_file (path, &error); g_assert_error (error, GDK_PIXBUF_ERROR, GDK_PIXBUF_ERROR_UNKNOWN_TYPE); diff --git a/tests/resources.gresource.xml b/tests/resources.gresource.xml index 94c7b0a1a..9e35aaac4 100644 --- a/tests/resources.gresource.xml +++ b/tests/resources.gresource.xml @@ -3,6 +3,7 @@ <gresource prefix="/test/resource"> <file>icc-profile.png</file> <file preprocess="to-pixdata" alias="icc-profile.pixdata">icc-profile.png</file> + <file preprocess="to-pixdata" compressed="true" alias="icc-profile-compressed.pixdata">icc-profile.png</file> <file>cve-2015-4491.bmp</file> </gresource> </gresources> |