diff options
author | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
---|---|---|
committer | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
commit | 5f8de423f190bbb79a62f804151bc24824fa32d8 (patch) | |
tree | 10027f336435511475e392454359edea8e25895d /image/test/reftest/bmp/bmp-corrupted | |
parent | 49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff) | |
download | UXP-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/bmp-corrupted')
-rw-r--r-- | image/test/reftest/bmp/bmp-corrupted/invalid-bpp.bmp | bin | 0 -> 58 bytes | |||
-rw-r--r-- | image/test/reftest/bmp/bmp-corrupted/invalid-compression-BITFIELDS.bmp | bin | 0 -> 78 bytes | |||
-rw-r--r-- | image/test/reftest/bmp/bmp-corrupted/invalid-compression-RLE4.bmp | bin | 0 -> 246 bytes | |||
-rw-r--r-- | image/test/reftest/bmp/bmp-corrupted/invalid-compression-RLE8.bmp | bin | 0 -> 246 bytes | |||
-rw-r--r-- | image/test/reftest/bmp/bmp-corrupted/invalid-compression.bmp | bin | 0 -> 822 bytes | |||
-rw-r--r-- | image/test/reftest/bmp/bmp-corrupted/invalid-signature.bmp | bin | 0 -> 58 bytes | |||
-rw-r--r-- | image/test/reftest/bmp/bmp-corrupted/invalid-truncated-metadata.bmp | bin | 0 -> 54 bytes | |||
-rw-r--r-- | image/test/reftest/bmp/bmp-corrupted/os2-invalid-bpp.bmp | bin | 0 -> 30 bytes | |||
-rw-r--r-- | image/test/reftest/bmp/bmp-corrupted/reftest-stylo.list | 19 | ||||
-rw-r--r-- | image/test/reftest/bmp/bmp-corrupted/reftest.list | 18 | ||||
-rw-r--r-- | image/test/reftest/bmp/bmp-corrupted/wrapper.html | 28 |
11 files changed, 65 insertions, 0 deletions
diff --git a/image/test/reftest/bmp/bmp-corrupted/invalid-bpp.bmp b/image/test/reftest/bmp/bmp-corrupted/invalid-bpp.bmp Binary files differnew file mode 100644 index 000000000..c00dd3fa4 --- /dev/null +++ b/image/test/reftest/bmp/bmp-corrupted/invalid-bpp.bmp diff --git a/image/test/reftest/bmp/bmp-corrupted/invalid-compression-BITFIELDS.bmp b/image/test/reftest/bmp/bmp-corrupted/invalid-compression-BITFIELDS.bmp Binary files differnew file mode 100644 index 000000000..92a722526 --- /dev/null +++ b/image/test/reftest/bmp/bmp-corrupted/invalid-compression-BITFIELDS.bmp diff --git a/image/test/reftest/bmp/bmp-corrupted/invalid-compression-RLE4.bmp b/image/test/reftest/bmp/bmp-corrupted/invalid-compression-RLE4.bmp Binary files differnew file mode 100644 index 000000000..d73c89411 --- /dev/null +++ b/image/test/reftest/bmp/bmp-corrupted/invalid-compression-RLE4.bmp diff --git a/image/test/reftest/bmp/bmp-corrupted/invalid-compression-RLE8.bmp b/image/test/reftest/bmp/bmp-corrupted/invalid-compression-RLE8.bmp Binary files differnew file mode 100644 index 000000000..5a8806454 --- /dev/null +++ b/image/test/reftest/bmp/bmp-corrupted/invalid-compression-RLE8.bmp diff --git a/image/test/reftest/bmp/bmp-corrupted/invalid-compression.bmp b/image/test/reftest/bmp/bmp-corrupted/invalid-compression.bmp Binary files differnew file mode 100644 index 000000000..aa3134e56 --- /dev/null +++ b/image/test/reftest/bmp/bmp-corrupted/invalid-compression.bmp diff --git a/image/test/reftest/bmp/bmp-corrupted/invalid-signature.bmp b/image/test/reftest/bmp/bmp-corrupted/invalid-signature.bmp Binary files differnew file mode 100644 index 000000000..6eebb5718 --- /dev/null +++ b/image/test/reftest/bmp/bmp-corrupted/invalid-signature.bmp diff --git a/image/test/reftest/bmp/bmp-corrupted/invalid-truncated-metadata.bmp b/image/test/reftest/bmp/bmp-corrupted/invalid-truncated-metadata.bmp Binary files differnew file mode 100644 index 000000000..228c5c999 --- /dev/null +++ b/image/test/reftest/bmp/bmp-corrupted/invalid-truncated-metadata.bmp diff --git a/image/test/reftest/bmp/bmp-corrupted/os2-invalid-bpp.bmp b/image/test/reftest/bmp/bmp-corrupted/os2-invalid-bpp.bmp Binary files differnew file mode 100644 index 000000000..af4678a28 --- /dev/null +++ b/image/test/reftest/bmp/bmp-corrupted/os2-invalid-bpp.bmp diff --git a/image/test/reftest/bmp/bmp-corrupted/reftest-stylo.list b/image/test/reftest/bmp/bmp-corrupted/reftest-stylo.list new file mode 100644 index 000000000..bb776a7af --- /dev/null +++ b/image/test/reftest/bmp/bmp-corrupted/reftest-stylo.list @@ -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 diff --git a/image/test/reftest/bmp/bmp-corrupted/reftest.list b/image/test/reftest/bmp/bmp-corrupted/reftest.list new file mode 100644 index 000000000..be73e2cf3 --- /dev/null +++ b/image/test/reftest/bmp/bmp-corrupted/reftest.list @@ -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 diff --git a/image/test/reftest/bmp/bmp-corrupted/wrapper.html b/image/test/reftest/bmp/bmp-corrupted/wrapper.html new file mode 100644 index 000000000..47e68959f --- /dev/null +++ b/image/test/reftest/bmp/bmp-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> + |