summaryrefslogtreecommitdiffstats
path: root/image/test/reftest/bmp/bmpsuite/b
diff options
context:
space:
mode:
authorMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
committerMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
commit5f8de423f190bbb79a62f804151bc24824fa32d8 (patch)
tree10027f336435511475e392454359edea8e25895d /image/test/reftest/bmp/bmpsuite/b
parent49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff)
downloadUXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip
Add m-esr52 at 52.6.0
Diffstat (limited to 'image/test/reftest/bmp/bmpsuite/b')
-rw-r--r--image/test/reftest/bmp/bmpsuite/b/badbitcount.bmpbin0 -> 1086 bytes
-rw-r--r--image/test/reftest/bmp/bmpsuite/b/badbitssize.bmpbin0 -> 1086 bytes
-rw-r--r--image/test/reftest/bmp/bmpsuite/b/baddens1.bmpbin0 -> 1086 bytes
-rw-r--r--image/test/reftest/bmp/bmpsuite/b/baddens2.bmpbin0 -> 1086 bytes
-rw-r--r--image/test/reftest/bmp/bmpsuite/b/badfilesize.bmpbin0 -> 1086 bytes
-rw-r--r--image/test/reftest/bmp/bmpsuite/b/badheadersize.bmpbin0 -> 1112 bytes
-rw-r--r--image/test/reftest/bmp/bmpsuite/b/badpalettesize.bmpbin0 -> 9254 bytes
-rw-r--r--image/test/reftest/bmp/bmpsuite/b/badplanes.bmpbin0 -> 1086 bytes
-rw-r--r--image/test/reftest/bmp/bmpsuite/b/badrle.bmpbin0 -> 9212 bytes
-rw-r--r--image/test/reftest/bmp/bmpsuite/b/badrle.pngbin0 -> 438 bytes
-rw-r--r--image/test/reftest/bmp/bmpsuite/b/badwidth.bmpbin0 -> 1086 bytes
-rw-r--r--image/test/reftest/bmp/bmpsuite/b/pal1.pngbin0 -> 586 bytes
-rw-r--r--image/test/reftest/bmp/bmpsuite/b/pal8.pngbin0 -> 3772 bytes
-rw-r--r--image/test/reftest/bmp/bmpsuite/b/pal8badindex.bmpbin0 -> 8650 bytes
-rw-r--r--image/test/reftest/bmp/bmpsuite/b/pal8badindex.pngbin0 -> 1819 bytes
-rw-r--r--image/test/reftest/bmp/bmpsuite/b/reallybig.bmpbin0 -> 24630 bytes
-rw-r--r--image/test/reftest/bmp/bmpsuite/b/reftest-stylo.list85
-rw-r--r--image/test/reftest/bmp/bmpsuite/b/reftest.list84
-rw-r--r--image/test/reftest/bmp/bmpsuite/b/rletopdown.bmpbin0 -> 8788 bytes
-rw-r--r--image/test/reftest/bmp/bmpsuite/b/shortfile.bmpbin0 -> 273 bytes
-rw-r--r--image/test/reftest/bmp/bmpsuite/b/shortfile.pngbin0 -> 399 bytes
-rw-r--r--image/test/reftest/bmp/bmpsuite/b/wrapper.html28
22 files changed, 197 insertions, 0 deletions
diff --git a/image/test/reftest/bmp/bmpsuite/b/badbitcount.bmp b/image/test/reftest/bmp/bmpsuite/b/badbitcount.bmp
new file mode 100644
index 000000000..d4fa4e8b8
--- /dev/null
+++ b/image/test/reftest/bmp/bmpsuite/b/badbitcount.bmp
Binary files differ
diff --git a/image/test/reftest/bmp/bmpsuite/b/badbitssize.bmp b/image/test/reftest/bmp/bmpsuite/b/badbitssize.bmp
new file mode 100644
index 000000000..0a99a605a
--- /dev/null
+++ b/image/test/reftest/bmp/bmpsuite/b/badbitssize.bmp
Binary files differ
diff --git a/image/test/reftest/bmp/bmpsuite/b/baddens1.bmp b/image/test/reftest/bmp/bmpsuite/b/baddens1.bmp
new file mode 100644
index 000000000..a6150a6fe
--- /dev/null
+++ b/image/test/reftest/bmp/bmpsuite/b/baddens1.bmp
Binary files differ
diff --git a/image/test/reftest/bmp/bmpsuite/b/baddens2.bmp b/image/test/reftest/bmp/bmpsuite/b/baddens2.bmp
new file mode 100644
index 000000000..f2c1dfb66
--- /dev/null
+++ b/image/test/reftest/bmp/bmpsuite/b/baddens2.bmp
Binary files differ
diff --git a/image/test/reftest/bmp/bmpsuite/b/badfilesize.bmp b/image/test/reftest/bmp/bmpsuite/b/badfilesize.bmp
new file mode 100644
index 000000000..da52cb51d
--- /dev/null
+++ b/image/test/reftest/bmp/bmpsuite/b/badfilesize.bmp
Binary files differ
diff --git a/image/test/reftest/bmp/bmpsuite/b/badheadersize.bmp b/image/test/reftest/bmp/bmpsuite/b/badheadersize.bmp
new file mode 100644
index 000000000..2a4083a6f
--- /dev/null
+++ b/image/test/reftest/bmp/bmpsuite/b/badheadersize.bmp
Binary files differ
diff --git a/image/test/reftest/bmp/bmpsuite/b/badpalettesize.bmp b/image/test/reftest/bmp/bmpsuite/b/badpalettesize.bmp
new file mode 100644
index 000000000..7d9d1b745
--- /dev/null
+++ b/image/test/reftest/bmp/bmpsuite/b/badpalettesize.bmp
Binary files differ
diff --git a/image/test/reftest/bmp/bmpsuite/b/badplanes.bmp b/image/test/reftest/bmp/bmpsuite/b/badplanes.bmp
new file mode 100644
index 000000000..92d2855b6
--- /dev/null
+++ b/image/test/reftest/bmp/bmpsuite/b/badplanes.bmp
Binary files differ
diff --git a/image/test/reftest/bmp/bmpsuite/b/badrle.bmp b/image/test/reftest/bmp/bmpsuite/b/badrle.bmp
new file mode 100644
index 000000000..cbf8fdc2e
--- /dev/null
+++ b/image/test/reftest/bmp/bmpsuite/b/badrle.bmp
Binary files differ
diff --git a/image/test/reftest/bmp/bmpsuite/b/badrle.png b/image/test/reftest/bmp/bmpsuite/b/badrle.png
new file mode 100644
index 000000000..1764ef9f9
--- /dev/null
+++ b/image/test/reftest/bmp/bmpsuite/b/badrle.png
Binary files differ
diff --git a/image/test/reftest/bmp/bmpsuite/b/badwidth.bmp b/image/test/reftest/bmp/bmpsuite/b/badwidth.bmp
new file mode 100644
index 000000000..9fca005dc
--- /dev/null
+++ b/image/test/reftest/bmp/bmpsuite/b/badwidth.bmp
Binary files differ
diff --git a/image/test/reftest/bmp/bmpsuite/b/pal1.png b/image/test/reftest/bmp/bmpsuite/b/pal1.png
new file mode 100644
index 000000000..89a433ed7
--- /dev/null
+++ b/image/test/reftest/bmp/bmpsuite/b/pal1.png
Binary files differ
diff --git a/image/test/reftest/bmp/bmpsuite/b/pal8.png b/image/test/reftest/bmp/bmpsuite/b/pal8.png
new file mode 100644
index 000000000..2bfd3e650
--- /dev/null
+++ b/image/test/reftest/bmp/bmpsuite/b/pal8.png
Binary files differ
diff --git a/image/test/reftest/bmp/bmpsuite/b/pal8badindex.bmp b/image/test/reftest/bmp/bmpsuite/b/pal8badindex.bmp
new file mode 100644
index 000000000..efe16c05c
--- /dev/null
+++ b/image/test/reftest/bmp/bmpsuite/b/pal8badindex.bmp
Binary files differ
diff --git a/image/test/reftest/bmp/bmpsuite/b/pal8badindex.png b/image/test/reftest/bmp/bmpsuite/b/pal8badindex.png
new file mode 100644
index 000000000..0efb392b9
--- /dev/null
+++ b/image/test/reftest/bmp/bmpsuite/b/pal8badindex.png
Binary files differ
diff --git a/image/test/reftest/bmp/bmpsuite/b/reallybig.bmp b/image/test/reftest/bmp/bmpsuite/b/reallybig.bmp
new file mode 100644
index 000000000..101e0b494
--- /dev/null
+++ b/image/test/reftest/bmp/bmpsuite/b/reallybig.bmp
Binary files differ
diff --git a/image/test/reftest/bmp/bmpsuite/b/reftest-stylo.list b/image/test/reftest/bmp/bmpsuite/b/reftest-stylo.list
new file mode 100644
index 000000000..244d80cb4
--- /dev/null
+++ b/image/test/reftest/bmp/bmpsuite/b/reftest-stylo.list
@@ -0,0 +1,85 @@
+# DO NOT EDIT! This is a auto-generated temporary list for Stylo testing
+# bmpsuite "bad" tests
+
+# See ../README.mozilla for details.
+
+# BMP: bihsize=40, 127 x 64, bpp=30000, compression=0, colors=2
+# "Header indicates an absurdly large number of bits/pixel."
+# [We reject it. So does Chromium.]
+skip == wrapper.html?badbitcount.bmp wrapper.html?badbitcount.bmp
+
+# BMP: bihsize=40, 127 x 64, bpp=1, compression=0, colors=2
+# "Header incorrectly indicates that the bitmap is several GB in size."
+# [We accept it. So does Chromium.]
+fails == badbitssize.bmp badbitssize.bmp
+
+# BMP: bihsize=40, 127 x 64, bpp=1, compression=0, colors=2
+# BMP: bihsize=40, 127 x 64, bpp=1, compression=0, colors=2
+# "Density (pixels per meter) suggests the image is much larger in one
+# dimension than the other."
+# [We accept them. So does Chromium.]
+fails == baddens1.bmp baddens1.bmp
+fails == baddens2.bmp baddens2.bmp
+
+# BMP: bihsize=40, 127 x 64, bpp=1, compression=0, colors=2
+# "Header incorrectly indicates that the file is several GB in size."
+# [We accept it. So does Chromium.]
+fails == badfilesize.bmp badfilesize.bmp
+
+# BMP: <no "BMP:" output is produced for files with bad header sizes>
+# "Header size is 66 bytes, which is not a valid size for any known BMP
+# version."
+# [We reject it. So does Chromium.]
+skip == wrapper.html?badheadersize.bmp wrapper.html?badheadersize.bmp
+
+# BMP: bihsize=40, 127 x 64, bpp=8, compression=0, colors=305402420
+# "Header incorrectly indicates that the palette contains an absurdly large
+# number of colors."
+# [We reject it. Chromium accepts it but draws nothing. Rejecting seems
+# preferable give that the data is clearly untrustworthy.]
+skip == wrapper.html?badpalettesize.bmp wrapper.html?badpalettesize.bmp
+
+# BMP: bihsize=40, 127 x 64, bpp=1, compression=0, colors=2
+# "The 'planes' setting, which is required to be 1, is not 1."
+# [We accept it. So does Chromium.]
+fails == badplanes.bmp badplanes.bmp
+
+# BMP: bihsize=40, 127 x 64, bpp=8, compression=1, colors=253
+# "An invalid RLE-compressed image that tries to cause buffer overruns."
+# [We accept it, drawing the valid first part and leaving the rest black.
+# Chromium accepts it, drawing the valid first part and leaving the rest
+# transparent. Using black for the invalid part is arguably better because it
+# makes the image edges more obvious.]
+== badrle.bmp badrle.bmp
+
+# BMP: bihsize=40, -127 x 64, bpp=1, compression=0, colors=2
+# "The image claims to be a negative number of pixels in width."
+# [We reject it. So does Chromium.]
+skip == wrapper.html?badwidth.bmp wrapper.html?badwidth.bmp
+
+# BMP: bihsize=40, 127 x 64, bpp=8, compression=0, colors=101
+# "Many of the palette indices used in the image are not present in the
+# palette."
+# [We accept it and use black for the missing colors. So does Chromium.]
+fails == pal8badindex.bmp pal8badindex.bmp
+
+# BMP: bihsize=40, 3000000 x 2000000, bpp=24, compression=0, colors=0
+# "An image with a very large reported width and height."
+# [We reject it. So does Chromium.]
+skip == wrapper.html?reallybig.bmp wrapper.html?reallybig.bmp
+
+# BMP: bihsize=40, 127 x -64, bpp=8, compression=1, colors=252
+# "An RLE-compressed image that tries to use top-down orientation, which isn’t
+# allowed."
+# [We accept it. Chromium rejects it. Accepting seems better given that we can
+# decode it perfectly well.]
+== rletopdown.bmp rletopdown.bmp
+
+# BMP: bihsize=40, 127 x 64, bpp=1, compression=0, colors=2
+# "A file that has been truncated in the middle of the bitmap."
+# [We accept it, drawing the part that is present and leaving the rest black.
+# Chromium draws the part that is present and leaves the rest transparent.
+# Using black for the invalid part is arguably better because it makes the
+# image edges more obvious.]
+fails == shortfile.bmp shortfile.bmp
+
diff --git a/image/test/reftest/bmp/bmpsuite/b/reftest.list b/image/test/reftest/bmp/bmpsuite/b/reftest.list
new file mode 100644
index 000000000..2d8ef5c75
--- /dev/null
+++ b/image/test/reftest/bmp/bmpsuite/b/reftest.list
@@ -0,0 +1,84 @@
+# bmpsuite "bad" tests
+
+# See ../README.mozilla for details.
+
+# BMP: bihsize=40, 127 x 64, bpp=30000, compression=0, colors=2
+# "Header indicates an absurdly large number of bits/pixel."
+# [We reject it. So does Chromium.]
+== wrapper.html?badbitcount.bmp about:blank
+
+# BMP: bihsize=40, 127 x 64, bpp=1, compression=0, colors=2
+# "Header incorrectly indicates that the bitmap is several GB in size."
+# [We accept it. So does Chromium.]
+== badbitssize.bmp pal1.png
+
+# BMP: bihsize=40, 127 x 64, bpp=1, compression=0, colors=2
+# BMP: bihsize=40, 127 x 64, bpp=1, compression=0, colors=2
+# "Density (pixels per meter) suggests the image is much larger in one
+# dimension than the other."
+# [We accept them. So does Chromium.]
+== baddens1.bmp pal1.png
+== baddens2.bmp pal1.png
+
+# BMP: bihsize=40, 127 x 64, bpp=1, compression=0, colors=2
+# "Header incorrectly indicates that the file is several GB in size."
+# [We accept it. So does Chromium.]
+== badfilesize.bmp pal1.png
+
+# BMP: <no "BMP:" output is produced for files with bad header sizes>
+# "Header size is 66 bytes, which is not a valid size for any known BMP
+# version."
+# [We reject it. So does Chromium.]
+== wrapper.html?badheadersize.bmp about:blank
+
+# BMP: bihsize=40, 127 x 64, bpp=8, compression=0, colors=305402420
+# "Header incorrectly indicates that the palette contains an absurdly large
+# number of colors."
+# [We reject it. Chromium accepts it but draws nothing. Rejecting seems
+# preferable give that the data is clearly untrustworthy.]
+== wrapper.html?badpalettesize.bmp about:blank
+
+# BMP: bihsize=40, 127 x 64, bpp=1, compression=0, colors=2
+# "The 'planes' setting, which is required to be 1, is not 1."
+# [We accept it. So does Chromium.]
+== badplanes.bmp pal1.png
+
+# BMP: bihsize=40, 127 x 64, bpp=8, compression=1, colors=253
+# "An invalid RLE-compressed image that tries to cause buffer overruns."
+# [We accept it, drawing the valid first part and leaving the rest black.
+# Chromium accepts it, drawing the valid first part and leaving the rest
+# transparent. Using black for the invalid part is arguably better because it
+# makes the image edges more obvious.]
+== badrle.bmp badrle.png
+
+# BMP: bihsize=40, -127 x 64, bpp=1, compression=0, colors=2
+# "The image claims to be a negative number of pixels in width."
+# [We reject it. So does Chromium.]
+== wrapper.html?badwidth.bmp about:blank
+
+# BMP: bihsize=40, 127 x 64, bpp=8, compression=0, colors=101
+# "Many of the palette indices used in the image are not present in the
+# palette."
+# [We accept it and use black for the missing colors. So does Chromium.]
+== pal8badindex.bmp pal8badindex.png
+
+# BMP: bihsize=40, 3000000 x 2000000, bpp=24, compression=0, colors=0
+# "An image with a very large reported width and height."
+# [We reject it. So does Chromium.]
+== wrapper.html?reallybig.bmp about:blank
+
+# BMP: bihsize=40, 127 x -64, bpp=8, compression=1, colors=252
+# "An RLE-compressed image that tries to use top-down orientation, which isn’t
+# allowed."
+# [We accept it. Chromium rejects it. Accepting seems better given that we can
+# decode it perfectly well.]
+fuzzy(1,899) == rletopdown.bmp pal8.png
+
+# BMP: bihsize=40, 127 x 64, bpp=1, compression=0, colors=2
+# "A file that has been truncated in the middle of the bitmap."
+# [We accept it, drawing the part that is present and leaving the rest black.
+# Chromium draws the part that is present and leaves the rest transparent.
+# Using black for the invalid part is arguably better because it makes the
+# image edges more obvious.]
+== shortfile.bmp shortfile.png
+
diff --git a/image/test/reftest/bmp/bmpsuite/b/rletopdown.bmp b/image/test/reftest/bmp/bmpsuite/b/rletopdown.bmp
new file mode 100644
index 000000000..21a909fda
--- /dev/null
+++ b/image/test/reftest/bmp/bmpsuite/b/rletopdown.bmp
Binary files differ
diff --git a/image/test/reftest/bmp/bmpsuite/b/shortfile.bmp b/image/test/reftest/bmp/bmpsuite/b/shortfile.bmp
new file mode 100644
index 000000000..73960797b
--- /dev/null
+++ b/image/test/reftest/bmp/bmpsuite/b/shortfile.bmp
Binary files differ
diff --git a/image/test/reftest/bmp/bmpsuite/b/shortfile.png b/image/test/reftest/bmp/bmpsuite/b/shortfile.png
new file mode 100644
index 000000000..0ec21d929
--- /dev/null
+++ b/image/test/reftest/bmp/bmpsuite/b/shortfile.png
Binary files differ
diff --git a/image/test/reftest/bmp/bmpsuite/b/wrapper.html b/image/test/reftest/bmp/bmpsuite/b/wrapper.html
new file mode 100644
index 000000000..47e68959f
--- /dev/null
+++ b/image/test/reftest/bmp/bmpsuite/b/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>
+