diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:47:29 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:47:29 +0000 |
commit | 0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d (patch) | |
tree | a31f07c9bcca9d56ce61e9a1ffd30ef350d513aa /image/test/reftest/pngsuite-corrupted | |
parent | Initial commit. (diff) | |
download | firefox-esr-0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d.tar.xz firefox-esr-0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d.zip |
Adding upstream version 115.8.0esr.upstream/115.8.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'image/test/reftest/pngsuite-corrupted')
-rw-r--r-- | image/test/reftest/pngsuite-corrupted/reftest.list | 10 | ||||
-rw-r--r-- | image/test/reftest/pngsuite-corrupted/wrapper.html | 28 | ||||
-rw-r--r-- | image/test/reftest/pngsuite-corrupted/x00n0g01.png | bin | 0 -> 49 bytes | |||
-rw-r--r-- | image/test/reftest/pngsuite-corrupted/xcrn0g04.png | bin | 0 -> 261 bytes | |||
-rw-r--r-- | image/test/reftest/pngsuite-corrupted/xlfn0g04.png | 13 |
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 Binary files differnew file mode 100644 index 0000000000..db3a5fda7e --- /dev/null +++ b/image/test/reftest/pngsuite-corrupted/x00n0g01.png diff --git a/image/test/reftest/pngsuite-corrupted/xcrn0g04.png b/image/test/reftest/pngsuite-corrupted/xcrn0g04.png Binary files differnew file mode 100644 index 0000000000..5bce9f3ada --- /dev/null +++ b/image/test/reftest/pngsuite-corrupted/xcrn0g04.png 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] +0P*@# + +#T10lPF`ؠF=IQ*u`%qk +Hmߟ э=,fOK + +t(F;P{xp]9/p*$(*yՃ@C cqNU#)11.rf0gh(tEkIENDB`
\ No newline at end of file |