summaryrefslogtreecommitdiffstats
path: root/image/test/reftest/pngsuite-corrupted
diff options
context:
space:
mode:
Diffstat (limited to 'image/test/reftest/pngsuite-corrupted')
-rw-r--r--image/test/reftest/pngsuite-corrupted/reftest.list10
-rw-r--r--image/test/reftest/pngsuite-corrupted/wrapper.html28
-rw-r--r--image/test/reftest/pngsuite-corrupted/x00n0g01.pngbin0 -> 49 bytes
-rw-r--r--image/test/reftest/pngsuite-corrupted/xcrn0g04.pngbin0 -> 261 bytes
-rw-r--r--image/test/reftest/pngsuite-corrupted/xlfn0g04.png13
5 files changed, 51 insertions, 0 deletions
diff --git a/image/test/reftest/pngsuite-corrupted/reftest.list b/image/test/reftest/pngsuite-corrupted/reftest.list
new file mode 100644
index 0000000000..86c5880f2c
--- /dev/null
+++ b/image/test/reftest/pngsuite-corrupted/reftest.list
@@ -0,0 +1,10 @@
+# PngSuite - Corrupted files
+#
+# Note: these are corrupt files, and so no image should be rendered.
+
+# x00n0g01 - empty 0x0 grayscale file
+== wrapper.html?x00n0g01.png about:blank
+# xcrn0g04 - added cr bytes
+== wrapper.html?xcrn0g04.png about:blank
+# xlfn0g04 - added lf bytes
+== wrapper.html?xlfn0g04.png about:blank
diff --git a/image/test/reftest/pngsuite-corrupted/wrapper.html b/image/test/reftest/pngsuite-corrupted/wrapper.html
new file mode 100644
index 0000000000..45b5167754
--- /dev/null
+++ b/image/test/reftest/pngsuite-corrupted/wrapper.html
@@ -0,0 +1,28 @@
+<!DOCTYPE HTML>
+<html class="reftest-wait">
+<head>
+<title>Image reftest wrapper</title>
+<style type="text/css">
+ #image1 { background-color: rgb(10, 100, 250); }
+</style>
+<script>
+ // The image is loaded async after the page loads
+ // wait for it to finish loading
+ function onImageLoad() {
+ document.documentElement.removeAttribute("class");
+ };
+</script>
+</head>
+<body>
+<!-- non-empty alt to avoid the broken image icon -->
+<img id="image1" alt=" ">
+<script>
+ // Use as "wrapper.html?image.png
+ var imgURL = document.location.search.substr(1);
+ document.images[0].onload = onImageLoad;
+ document.images[0].onerror = onImageLoad;
+ document.images[0].src = imgURL;
+</script>
+</body>
+</html>
+
diff --git a/image/test/reftest/pngsuite-corrupted/x00n0g01.png b/image/test/reftest/pngsuite-corrupted/x00n0g01.png
new file mode 100644
index 0000000000..db3a5fda7e
--- /dev/null
+++ b/image/test/reftest/pngsuite-corrupted/x00n0g01.png
Binary files differ
diff --git a/image/test/reftest/pngsuite-corrupted/xcrn0g04.png b/image/test/reftest/pngsuite-corrupted/xcrn0g04.png
new file mode 100644
index 0000000000..5bce9f3ada
--- /dev/null
+++ b/image/test/reftest/pngsuite-corrupted/xcrn0g04.png
Binary files differ
diff --git a/image/test/reftest/pngsuite-corrupted/xlfn0g04.png b/image/test/reftest/pngsuite-corrupted/xlfn0g04.png
new file mode 100644
index 0000000000..1fd104ba61
--- /dev/null
+++ b/image/test/reftest/pngsuite-corrupted/xlfn0g04.png
@@ -0,0 +1,13 @@
+PNG
+
+
+
+
+
+IHDR )IDATx]
+0 P*@#
+
+#T10lPF`ؠF=IQ*u`%qk
+H񚈩mߟ э=,fOK
+
+t(F ;P{xp]9/p*$(*yՃ@C  cqNU#)11.rf0gh(tEkIENDB` \ No newline at end of file