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-stylo.list11
-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
6 files changed, 62 insertions, 0 deletions
diff --git a/image/test/reftest/pngsuite-corrupted/reftest-stylo.list b/image/test/reftest/pngsuite-corrupted/reftest-stylo.list
new file mode 100644
index 000000000..ed4baead8
--- /dev/null
+++ b/image/test/reftest/pngsuite-corrupted/reftest-stylo.list
@@ -0,0 +1,11 @@
+# DO NOT EDIT! This is a auto-generated temporary list for Stylo testing
+# PngSuite - Corrupted files
+#
+# Note: these are corrupt files, and so no image should be rendered.
+
+# x00n0g01 - empty 0x0 grayscale file
+skip == wrapper.html?x00n0g01.png wrapper.html?x00n0g01.png
+# xcrn0g04 - added cr bytes
+skip == wrapper.html?xcrn0g04.png wrapper.html?xcrn0g04.png
+# xlfn0g04 - added lf bytes
+skip == wrapper.html?xlfn0g04.png wrapper.html?xlfn0g04.png
diff --git a/image/test/reftest/pngsuite-corrupted/reftest.list b/image/test/reftest/pngsuite-corrupted/reftest.list
new file mode 100644
index 000000000..86c5880f2
--- /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 000000000..0015856df
--- /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>
+<img id="image1">
+<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].alt = "";
+ 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 000000000..db3a5fda7
--- /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 000000000..5bce9f3ad
--- /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 000000000..1fd104ba6
--- /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