summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2019-03-01 12:22:00 +0100
committerBastien Nocera <hadess@hadess.net>2019-03-01 12:22:00 +0100
commit3a5600b285bd23c47953081a294ccf0bb5a96eb5 (patch)
tree50bc069e1cf1236f2d93591ac54a715d405c8427 /tests
parent69f60af1f74be4c71db5b11817134e7951ba8827 (diff)
downloadgdk-pixbuf-3a5600b285bd23c47953081a294ccf0bb5a96eb5.tar.gz
tests: Add test image for invalid XPM data
Diffstat (limited to 'tests')
-rw-r--r--tests/test-images/fail/issue-95-too-narrow.xpm34
-rw-r--r--tests/test-images/fail/issue-95-too-short.xpm34
2 files changed, 68 insertions, 0 deletions
diff --git a/tests/test-images/fail/issue-95-too-narrow.xpm b/tests/test-images/fail/issue-95-too-narrow.xpm
new file mode 100644
index 000000000..d5b53100e
--- /dev/null
+++ b/tests/test-images/fail/issue-95-too-narrow.xpm
@@ -0,0 +1,34 @@
+/* XPM */
+static char * plaid[] = {
+/* plaid pixmap
+ * width height ncolors chars_per_pixel */
+"220 220 4 2 ",
+/* colors */
+" c red m white s light_color ",
+"Y c green m black s lines_in_mix ",
+"+ c yellow m white s lines_in_dark ",
+"x m black s dark_color ",
+/* pixels */
+"x x x x x x x x x x x x + x x x x x ",
+" x x x x x x x x x x x x x x x x ",
+"x x x x x x x x x x x x + x x x x x ",
+" x x x x x x x x x x x x x x x x ",
+"x x x x x x x x x x x x + x x x x x ",
+"Y Y Y Y Y x Y Y Y Y Y + x + x + x + x + x + ",
+"x x x x x x x x x x x x + x x x x x ",
+" x x x x x x x x x x x x x x x x ",
+"x x x x x x x x x x x x + x x x x x ",
+" x x x x x x x x x x x x x x x x ",
+"x x x x x x x x x x x x + x x x x x ",
+" x x x x Y x x x ",
+" x x x Y x x ",
+" x x x x Y x x x ",
+" x x x Y x x ",
+" x x x x Y x x x ",
+"x x x x x x x x x x x x x x x x x x x x x x ",
+" x x x x Y x x x ",
+" x x x Y x x ",
+" x x x x Y x x x ",
+" x x x Y x x ",
+" x x x x Y x x x "
+} ;
diff --git a/tests/test-images/fail/issue-95-too-short.xpm b/tests/test-images/fail/issue-95-too-short.xpm
new file mode 100644
index 000000000..a378c1f93
--- /dev/null
+++ b/tests/test-images/fail/issue-95-too-short.xpm
@@ -0,0 +1,34 @@
+/* XPM */
+static char * plaid[] = {
+/* plaid pixmap
+ * width height ncolors chars_per_pixel */
+"22 220 4 2 ",
+/* colors */
+" c red m white s light_color ",
+"Y c green m black s lines_in_mix ",
+"+ c yellow m white s lines_in_dark ",
+"x m black s dark_color ",
+/* pixels */
+"x x x x x x x x x x x x + x x x x x ",
+" x x x x x x x x x x x x x x x x ",
+"x x x x x x x x x x x x + x x x x x ",
+" x x x x x x x x x x x x x x x x ",
+"x x x x x x x x x x x x + x x x x x ",
+"Y Y Y Y Y x Y Y Y Y Y + x + x + x + x + x + ",
+"x x x x x x x x x x x x + x x x x x ",
+" x x x x x x x x x x x x x x x x ",
+"x x x x x x x x x x x x + x x x x x ",
+" x x x x x x x x x x x x x x x x ",
+"x x x x x x x x x x x x + x x x x x ",
+" x x x x Y x x x ",
+" x x x Y x x ",
+" x x x x Y x x x ",
+" x x x Y x x ",
+" x x x x Y x x x ",
+"x x x x x x x x x x x x x x x x x x x x x x ",
+" x x x x Y x x x ",
+" x x x Y x x ",
+" x x x x Y x x x ",
+" x x x Y x x ",
+" x x x x Y x x x "
+} ;