diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
commit | 26a029d407be480d791972afb5975cf62c9360a6 (patch) | |
tree | f435a8308119effd964b339f76abb83a57c29483 /image/test/reftest/jpeg | |
parent | Initial commit. (diff) | |
download | firefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz firefox-26a029d407be480d791972afb5975cf62c9360a6.zip |
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'image/test/reftest/jpeg')
55 files changed, 80 insertions, 0 deletions
diff --git a/image/test/reftest/jpeg/blue.html b/image/test/reftest/jpeg/blue.html new file mode 100644 index 0000000000..3f4bb44f7e --- /dev/null +++ b/image/test/reftest/jpeg/blue.html @@ -0,0 +1 @@ +<img src="blue.jpg"> diff --git a/image/test/reftest/jpeg/blue.jpg b/image/test/reftest/jpeg/blue.jpg Binary files differnew file mode 100644 index 0000000000..b5fef5d26c --- /dev/null +++ b/image/test/reftest/jpeg/blue.jpg diff --git a/image/test/reftest/jpeg/jpg-cmyk-1.jpg b/image/test/reftest/jpeg/jpg-cmyk-1.jpg Binary files differnew file mode 100644 index 0000000000..ddb2c106f2 --- /dev/null +++ b/image/test/reftest/jpeg/jpg-cmyk-1.jpg diff --git a/image/test/reftest/jpeg/jpg-cmyk-1.png b/image/test/reftest/jpeg/jpg-cmyk-1.png Binary files differnew file mode 100644 index 0000000000..06915d5bce --- /dev/null +++ b/image/test/reftest/jpeg/jpg-cmyk-1.png diff --git a/image/test/reftest/jpeg/jpg-cmyk-2.jpg b/image/test/reftest/jpeg/jpg-cmyk-2.jpg Binary files differnew file mode 100644 index 0000000000..b955bde549 --- /dev/null +++ b/image/test/reftest/jpeg/jpg-cmyk-2.jpg diff --git a/image/test/reftest/jpeg/jpg-cmyk-2.png b/image/test/reftest/jpeg/jpg-cmyk-2.png Binary files differnew file mode 100644 index 0000000000..9691e42b65 --- /dev/null +++ b/image/test/reftest/jpeg/jpg-cmyk-2.png diff --git a/image/test/reftest/jpeg/jpg-gray.jpg b/image/test/reftest/jpeg/jpg-gray.jpg Binary files differnew file mode 100644 index 0000000000..af0413e3c1 --- /dev/null +++ b/image/test/reftest/jpeg/jpg-gray.jpg diff --git a/image/test/reftest/jpeg/jpg-gray.png b/image/test/reftest/jpeg/jpg-gray.png Binary files differnew file mode 100644 index 0000000000..c5aedc34dc --- /dev/null +++ b/image/test/reftest/jpeg/jpg-gray.png diff --git a/image/test/reftest/jpeg/jpg-progressive-1000-ref.html b/image/test/reftest/jpeg/jpg-progressive-1000-ref.html new file mode 100644 index 0000000000..0ff2497102 --- /dev/null +++ b/image/test/reftest/jpeg/jpg-progressive-1000-ref.html @@ -0,0 +1 @@ +<img src="nosuchurl"> diff --git a/image/test/reftest/jpeg/jpg-progressive-1000.html b/image/test/reftest/jpeg/jpg-progressive-1000.html new file mode 100644 index 0000000000..b9eaf9c53a --- /dev/null +++ b/image/test/reftest/jpeg/jpg-progressive-1000.html @@ -0,0 +1 @@ +<img src="jpg-progressive-1000.jpg"> diff --git a/image/test/reftest/jpeg/jpg-progressive-1000.jpg b/image/test/reftest/jpeg/jpg-progressive-1000.jpg Binary files differnew file mode 100644 index 0000000000..65a4325b53 --- /dev/null +++ b/image/test/reftest/jpeg/jpg-progressive-1000.jpg diff --git a/image/test/reftest/jpeg/jpg-progressive.jpg b/image/test/reftest/jpeg/jpg-progressive.jpg Binary files differnew file mode 100644 index 0000000000..db3cf59c26 --- /dev/null +++ b/image/test/reftest/jpeg/jpg-progressive.jpg diff --git a/image/test/reftest/jpeg/jpg-progressive.png b/image/test/reftest/jpeg/jpg-progressive.png Binary files differnew file mode 100644 index 0000000000..3a6fbe8ee9 --- /dev/null +++ b/image/test/reftest/jpeg/jpg-progressive.png diff --git a/image/test/reftest/jpeg/jpg-size-15x15.jpg b/image/test/reftest/jpeg/jpg-size-15x15.jpg Binary files differnew file mode 100644 index 0000000000..efe120a27f --- /dev/null +++ b/image/test/reftest/jpeg/jpg-size-15x15.jpg diff --git a/image/test/reftest/jpeg/jpg-size-15x15.png b/image/test/reftest/jpeg/jpg-size-15x15.png Binary files differnew file mode 100644 index 0000000000..e1287430d0 --- /dev/null +++ b/image/test/reftest/jpeg/jpg-size-15x15.png diff --git a/image/test/reftest/jpeg/jpg-size-16x16.jpg b/image/test/reftest/jpeg/jpg-size-16x16.jpg Binary files differnew file mode 100644 index 0000000000..148ec733f9 --- /dev/null +++ b/image/test/reftest/jpeg/jpg-size-16x16.jpg diff --git a/image/test/reftest/jpeg/jpg-size-16x16.png b/image/test/reftest/jpeg/jpg-size-16x16.png Binary files differnew file mode 100644 index 0000000000..c04869e728 --- /dev/null +++ b/image/test/reftest/jpeg/jpg-size-16x16.png diff --git a/image/test/reftest/jpeg/jpg-size-17x17.jpg b/image/test/reftest/jpeg/jpg-size-17x17.jpg Binary files differnew file mode 100644 index 0000000000..b06bdb0d69 --- /dev/null +++ b/image/test/reftest/jpeg/jpg-size-17x17.jpg diff --git a/image/test/reftest/jpeg/jpg-size-17x17.png b/image/test/reftest/jpeg/jpg-size-17x17.png Binary files differnew file mode 100644 index 0000000000..00fb8e4f37 --- /dev/null +++ b/image/test/reftest/jpeg/jpg-size-17x17.png diff --git a/image/test/reftest/jpeg/jpg-size-1x1.jpg b/image/test/reftest/jpeg/jpg-size-1x1.jpg Binary files differnew file mode 100644 index 0000000000..73b68dfc06 --- /dev/null +++ b/image/test/reftest/jpeg/jpg-size-1x1.jpg diff --git a/image/test/reftest/jpeg/jpg-size-1x1.png b/image/test/reftest/jpeg/jpg-size-1x1.png Binary files differnew file mode 100644 index 0000000000..c05f5fef89 --- /dev/null +++ b/image/test/reftest/jpeg/jpg-size-1x1.png diff --git a/image/test/reftest/jpeg/jpg-size-2x2.jpg b/image/test/reftest/jpeg/jpg-size-2x2.jpg Binary files differnew file mode 100644 index 0000000000..bc50260ea6 --- /dev/null +++ b/image/test/reftest/jpeg/jpg-size-2x2.jpg diff --git a/image/test/reftest/jpeg/jpg-size-2x2.png b/image/test/reftest/jpeg/jpg-size-2x2.png Binary files differnew file mode 100644 index 0000000000..e512d3f9b4 --- /dev/null +++ b/image/test/reftest/jpeg/jpg-size-2x2.png diff --git a/image/test/reftest/jpeg/jpg-size-31x31.jpg b/image/test/reftest/jpeg/jpg-size-31x31.jpg Binary files differnew file mode 100644 index 0000000000..8fa0cc2367 --- /dev/null +++ b/image/test/reftest/jpeg/jpg-size-31x31.jpg diff --git a/image/test/reftest/jpeg/jpg-size-31x31.png b/image/test/reftest/jpeg/jpg-size-31x31.png Binary files differnew file mode 100644 index 0000000000..e4a8642514 --- /dev/null +++ b/image/test/reftest/jpeg/jpg-size-31x31.png diff --git a/image/test/reftest/jpeg/jpg-size-32x32.jpg b/image/test/reftest/jpeg/jpg-size-32x32.jpg Binary files differnew file mode 100644 index 0000000000..b11d62df6d --- /dev/null +++ b/image/test/reftest/jpeg/jpg-size-32x32.jpg diff --git a/image/test/reftest/jpeg/jpg-size-32x32.png b/image/test/reftest/jpeg/jpg-size-32x32.png Binary files differnew file mode 100644 index 0000000000..3a6fbe8ee9 --- /dev/null +++ b/image/test/reftest/jpeg/jpg-size-32x32.png diff --git a/image/test/reftest/jpeg/jpg-size-33x33.jpg b/image/test/reftest/jpeg/jpg-size-33x33.jpg Binary files differnew file mode 100644 index 0000000000..5ac1169b4b --- /dev/null +++ b/image/test/reftest/jpeg/jpg-size-33x33.jpg diff --git a/image/test/reftest/jpeg/jpg-size-33x33.png b/image/test/reftest/jpeg/jpg-size-33x33.png Binary files differnew file mode 100644 index 0000000000..72ef7eb636 --- /dev/null +++ b/image/test/reftest/jpeg/jpg-size-33x33.png diff --git a/image/test/reftest/jpeg/jpg-size-3x3.jpg b/image/test/reftest/jpeg/jpg-size-3x3.jpg Binary files differnew file mode 100644 index 0000000000..cf370d8ece --- /dev/null +++ b/image/test/reftest/jpeg/jpg-size-3x3.jpg diff --git a/image/test/reftest/jpeg/jpg-size-3x3.png b/image/test/reftest/jpeg/jpg-size-3x3.png Binary files differnew file mode 100644 index 0000000000..cb42ec4f87 --- /dev/null +++ b/image/test/reftest/jpeg/jpg-size-3x3.png diff --git a/image/test/reftest/jpeg/jpg-size-4x4.jpg b/image/test/reftest/jpeg/jpg-size-4x4.jpg Binary files differnew file mode 100644 index 0000000000..5adf760a1b --- /dev/null +++ b/image/test/reftest/jpeg/jpg-size-4x4.jpg diff --git a/image/test/reftest/jpeg/jpg-size-4x4.png b/image/test/reftest/jpeg/jpg-size-4x4.png Binary files differnew file mode 100644 index 0000000000..e6afafd89a --- /dev/null +++ b/image/test/reftest/jpeg/jpg-size-4x4.png diff --git a/image/test/reftest/jpeg/jpg-size-5x5.jpg b/image/test/reftest/jpeg/jpg-size-5x5.jpg Binary files differnew file mode 100644 index 0000000000..4d5fd0501c --- /dev/null +++ b/image/test/reftest/jpeg/jpg-size-5x5.jpg diff --git a/image/test/reftest/jpeg/jpg-size-5x5.png b/image/test/reftest/jpeg/jpg-size-5x5.png Binary files differnew file mode 100644 index 0000000000..a844aff76d --- /dev/null +++ b/image/test/reftest/jpeg/jpg-size-5x5.png diff --git a/image/test/reftest/jpeg/jpg-size-6x6.jpg b/image/test/reftest/jpeg/jpg-size-6x6.jpg Binary files differnew file mode 100644 index 0000000000..415c2d9c6a --- /dev/null +++ b/image/test/reftest/jpeg/jpg-size-6x6.jpg diff --git a/image/test/reftest/jpeg/jpg-size-6x6.png b/image/test/reftest/jpeg/jpg-size-6x6.png Binary files differnew file mode 100644 index 0000000000..415c2d9c6a --- /dev/null +++ b/image/test/reftest/jpeg/jpg-size-6x6.png diff --git a/image/test/reftest/jpeg/jpg-size-7x7.jpg b/image/test/reftest/jpeg/jpg-size-7x7.jpg Binary files differnew file mode 100644 index 0000000000..5495f7e43e --- /dev/null +++ b/image/test/reftest/jpeg/jpg-size-7x7.jpg diff --git a/image/test/reftest/jpeg/jpg-size-7x7.png b/image/test/reftest/jpeg/jpg-size-7x7.png Binary files differnew file mode 100644 index 0000000000..ab2f892747 --- /dev/null +++ b/image/test/reftest/jpeg/jpg-size-7x7.png diff --git a/image/test/reftest/jpeg/jpg-size-8x8.jpg b/image/test/reftest/jpeg/jpg-size-8x8.jpg Binary files differnew file mode 100644 index 0000000000..84a5c8f426 --- /dev/null +++ b/image/test/reftest/jpeg/jpg-size-8x8.jpg diff --git a/image/test/reftest/jpeg/jpg-size-8x8.png b/image/test/reftest/jpeg/jpg-size-8x8.png Binary files differnew file mode 100644 index 0000000000..fe2ff40a1d --- /dev/null +++ b/image/test/reftest/jpeg/jpg-size-8x8.png diff --git a/image/test/reftest/jpeg/jpg-size-9x9.jpg b/image/test/reftest/jpeg/jpg-size-9x9.jpg Binary files differnew file mode 100644 index 0000000000..d0a15e599f --- /dev/null +++ b/image/test/reftest/jpeg/jpg-size-9x9.jpg diff --git a/image/test/reftest/jpeg/jpg-size-9x9.png b/image/test/reftest/jpeg/jpg-size-9x9.png Binary files differnew file mode 100644 index 0000000000..18ab4b25de --- /dev/null +++ b/image/test/reftest/jpeg/jpg-size-9x9.png diff --git a/image/test/reftest/jpeg/jpg-srgb-icc.jpg b/image/test/reftest/jpeg/jpg-srgb-icc.jpg Binary files differnew file mode 100644 index 0000000000..3ebefac732 --- /dev/null +++ b/image/test/reftest/jpeg/jpg-srgb-icc.jpg diff --git a/image/test/reftest/jpeg/jpg-srgb-icc.png b/image/test/reftest/jpeg/jpg-srgb-icc.png Binary files differnew file mode 100644 index 0000000000..1d8efc687a --- /dev/null +++ b/image/test/reftest/jpeg/jpg-srgb-icc.png diff --git a/image/test/reftest/jpeg/non-interleaved_progressive-1-halfred-ref.png b/image/test/reftest/jpeg/non-interleaved_progressive-1-halfred-ref.png Binary files differnew file mode 100644 index 0000000000..7d0c9e5580 --- /dev/null +++ b/image/test/reftest/jpeg/non-interleaved_progressive-1-halfred-ref.png diff --git a/image/test/reftest/jpeg/non-interleaved_progressive-1.jpg b/image/test/reftest/jpeg/non-interleaved_progressive-1.jpg Binary files differnew file mode 100644 index 0000000000..5128473dfd --- /dev/null +++ b/image/test/reftest/jpeg/non-interleaved_progressive-1.jpg diff --git a/image/test/reftest/jpeg/non-interleaved_progressive-2-white-ref.png b/image/test/reftest/jpeg/non-interleaved_progressive-2-white-ref.png Binary files differnew file mode 100644 index 0000000000..597329a663 --- /dev/null +++ b/image/test/reftest/jpeg/non-interleaved_progressive-2-white-ref.png diff --git a/image/test/reftest/jpeg/non-interleaved_progressive-2.jpg b/image/test/reftest/jpeg/non-interleaved_progressive-2.jpg Binary files differnew file mode 100644 index 0000000000..d4c80e9124 --- /dev/null +++ b/image/test/reftest/jpeg/non-interleaved_progressive-2.jpg diff --git a/image/test/reftest/jpeg/red-bad-marker.jpg b/image/test/reftest/jpeg/red-bad-marker.jpg Binary files differnew file mode 100644 index 0000000000..4abda17e59 --- /dev/null +++ b/image/test/reftest/jpeg/red-bad-marker.jpg diff --git a/image/test/reftest/jpeg/red.jpg b/image/test/reftest/jpeg/red.jpg Binary files differnew file mode 100644 index 0000000000..8fca4b938f --- /dev/null +++ b/image/test/reftest/jpeg/red.jpg diff --git a/image/test/reftest/jpeg/reftest.list b/image/test/reftest/jpeg/reftest.list new file mode 100644 index 0000000000..d8723b8071 --- /dev/null +++ b/image/test/reftest/jpeg/reftest.list @@ -0,0 +1,73 @@ +# JPEG tests + +# Images of various sizes. +== jpg-size-1x1.jpg jpg-size-1x1.png +== jpg-size-2x2.jpg jpg-size-2x2.png +== jpg-size-3x3.jpg jpg-size-3x3.png +== jpg-size-4x4.jpg jpg-size-4x4.png +== jpg-size-5x5.jpg jpg-size-5x5.png +== jpg-size-6x6.jpg jpg-size-6x6.png +== jpg-size-7x7.jpg jpg-size-7x7.png +== jpg-size-8x8.jpg jpg-size-8x8.png +== jpg-size-9x9.jpg jpg-size-9x9.png +== jpg-size-15x15.jpg jpg-size-15x15.png +== jpg-size-16x16.jpg jpg-size-16x16.png +== jpg-size-17x17.jpg jpg-size-17x17.png +== jpg-size-31x31.jpg jpg-size-31x31.png +== jpg-size-32x32.jpg jpg-size-32x32.png +== jpg-size-33x33.jpg jpg-size-33x33.png +# Progressive encoding +== jpg-progressive.jpg jpg-progressive.png +# Grayscale colorspace +== jpg-gray.jpg jpg-gray.png +# CMYK colorspace +== jpg-cmyk-1.jpg jpg-cmyk-1.png +== jpg-cmyk-2.jpg jpg-cmyk-2.png +# This intermittently fails on Android due to async image decoding (bug #685516) +# Sometimes the image decodes in time and the test passes, other times the image +# appears blank and the test fails. This only seems to be triggered since the +# switch to 24-bit colour (bug #803299). +random-if(Android) == jpg-srgb-icc.jpg jpg-srgb-icc.png + +# webcam-simulacrum.mjpg is a hand-edited file containing red.jpg and blue.jpg, +# concatenated together with the relevant headers for +# multipart/x-mixed-replace. Specifically, with the headers in +# webcam-simulacrum.mjpg^headers^, the web browser will get the following: +# +# HTTP 200 OK +# Content-Type: multipart/x-mixed-replace;boundary=BOUNDARYOMG +# +# --BOUNDARYOMG\r\n +# Content-Type: image/jpeg\r\n +# \r\n +# <contents of red.jpg> (no newline) +# --BOUNDARYOMG\r\n +# Content-Type: image/jpeg\r\n +# \r\n +# <contents of blue.jpg> (no newline) +# --BOUNDARYOMG--\r\n +# +# (The boundary is arbitrary, and just has to be defined as something that +# won't be in the text of the contents themselves. --$(boundary)\r\n means +# "Here is the beginning of a boundary," and --$(boundary)-- means "All done +# sending you parts.") +HTTP == webcam-simulacrum.mjpg blue.jpg +# Same as the above but as img elements in html files to get better test +# coverage of multipart images. +# Images loaded at the top level are actually loaded into an ImageDocument +# which is a slim html document wrapper around the image. +# Multipart images send multiple OnStartRequest's, each OnStartRequest causes +# us to create a new ImageDocument to show the next part. +# This differs from displaying a multipart image in an img element in a regular +# document where we use the same document and same elements and same layout +# frames for each part. So we have this testcase to test those different +# codepaths. +HTTP == webcam-simulacrum.html blue.html + +== non-interleaved_progressive-1.jpg non-interleaved_progressive-1-halfred-ref.png +== non-interleaved_progressive-2.jpg non-interleaved_progressive-2-white-ref.png + +== red-bad-marker.jpg red.jpg + +# check that we reject jpegs with > 1000 scans +== jpg-progressive-1000.html jpg-progressive-1000-ref.html diff --git a/image/test/reftest/jpeg/webcam-simulacrum.html b/image/test/reftest/jpeg/webcam-simulacrum.html new file mode 100644 index 0000000000..2fc6395c7a --- /dev/null +++ b/image/test/reftest/jpeg/webcam-simulacrum.html @@ -0,0 +1 @@ +<img src="webcam-simulacrum.mjpg"> diff --git a/image/test/reftest/jpeg/webcam-simulacrum.mjpg b/image/test/reftest/jpeg/webcam-simulacrum.mjpg Binary files differnew file mode 100644 index 0000000000..a593273c0e --- /dev/null +++ b/image/test/reftest/jpeg/webcam-simulacrum.mjpg diff --git a/image/test/reftest/jpeg/webcam-simulacrum.mjpg^headers^ b/image/test/reftest/jpeg/webcam-simulacrum.mjpg^headers^ new file mode 100644 index 0000000000..f5e846508e --- /dev/null +++ b/image/test/reftest/jpeg/webcam-simulacrum.mjpg^headers^ @@ -0,0 +1,3 @@ +HTTP 200 OK +Content-Type: multipart/x-mixed-replace;boundary=BOUNDARYOMG +Cache-Control: no-cache |