import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo
BIN
image/test/reftest/bmp/bmp-corrupted/invalid-bpp.bmp
Normal file
|
After Width: | Height: | Size: 58 B |
|
After Width: | Height: | Size: 78 B |
|
After Width: | Height: | Size: 246 B |
|
After Width: | Height: | Size: 246 B |
BIN
image/test/reftest/bmp/bmp-corrupted/invalid-compression.bmp
Normal file
|
After Width: | Height: | Size: 822 B |
BIN
image/test/reftest/bmp/bmp-corrupted/invalid-signature.bmp
Normal file
|
After Width: | Height: | Size: 54 B |
BIN
image/test/reftest/bmp/bmp-corrupted/os2-invalid-bpp.bmp
Normal file
|
After Width: | Height: | Size: 30 B |
19
image/test/reftest/bmp/bmp-corrupted/reftest-stylo.list
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
# DO NOT EDIT! This is a auto-generated temporary list for Stylo testing
|
||||
# Corrupted BMP tests
|
||||
|
||||
skip == wrapper.html?invalid-signature.bmp wrapper.html?invalid-signature.bmp
|
||||
skip == wrapper.html?invalid-bpp.bmp wrapper.html?invalid-bpp.bmp
|
||||
skip == wrapper.html?os2-invalid-bpp.bmp wrapper.html?os2-invalid-bpp.bmp
|
||||
# Tests for an unsupported compression value
|
||||
skip == wrapper.html?invalid-compression.bmp wrapper.html?invalid-compression.bmp
|
||||
# Tests for RLE4 with an invalid BPP
|
||||
skip == wrapper.html?invalid-compression-RLE4.bmp wrapper.html?invalid-compression-RLE4.bmp
|
||||
# Tests for RLE8 with an invalid BPP
|
||||
skip == wrapper.html?invalid-compression-RLE8.bmp wrapper.html?invalid-compression-RLE8.bmp
|
||||
|
||||
# Test for BITFIELDS with an invalid BIH size. (This is the obscure
|
||||
# BITMAPV3INFOHEADER variant mentioned in
|
||||
# https://en.wikipedia.org/wiki/BMP_file_format which we don't accept.)
|
||||
skip == wrapper.html?invalid-compression-BITFIELDS.bmp wrapper.html?invalid-compression-BITFIELDS.bmp
|
||||
|
||||
skip == wrapper.html?invalid-truncated-metadata.bmp wrapper.html?invalid-truncated-metadata.bmp
|
||||
18
image/test/reftest/bmp/bmp-corrupted/reftest.list
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
# Corrupted BMP tests
|
||||
|
||||
== wrapper.html?invalid-signature.bmp about:blank
|
||||
== wrapper.html?invalid-bpp.bmp about:blank
|
||||
== wrapper.html?os2-invalid-bpp.bmp about:blank
|
||||
# Tests for an unsupported compression value
|
||||
== wrapper.html?invalid-compression.bmp about:blank
|
||||
# Tests for RLE4 with an invalid BPP
|
||||
== wrapper.html?invalid-compression-RLE4.bmp about:blank
|
||||
# Tests for RLE8 with an invalid BPP
|
||||
== wrapper.html?invalid-compression-RLE8.bmp about:blank
|
||||
|
||||
# Test for BITFIELDS with an invalid BIH size. (This is the obscure
|
||||
# BITMAPV3INFOHEADER variant mentioned in
|
||||
# https://en.wikipedia.org/wiki/BMP_file_format which we don't accept.)
|
||||
== wrapper.html?invalid-compression-BITFIELDS.bmp about:blank
|
||||
|
||||
== wrapper.html?invalid-truncated-metadata.bmp about:blank
|
||||
28
image/test/reftest/bmp/bmp-corrupted/wrapper.html
Normal file
|
|
@ -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>
|
||||
|
||||