diff options
Diffstat (limited to 'image/test/reftest/jpeg')
46 files changed, 116 insertions, 0 deletions
diff --git a/image/test/reftest/jpeg/blue.jpg b/image/test/reftest/jpeg/blue.jpg Binary files differnew file mode 100644 index 000000000..b5fef5d26 --- /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 000000000..ddb2c106f --- /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 000000000..06915d5bc --- /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 000000000..b955bde54 --- /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 000000000..9691e42b6 --- /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 000000000..af0413e3c --- /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 000000000..c5aedc34d --- /dev/null +++ b/image/test/reftest/jpeg/jpg-gray.png 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 000000000..db3cf59c2 --- /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 000000000..3a6fbe8ee --- /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 000000000..efe120a27 --- /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 000000000..e1287430d --- /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 000000000..148ec733f --- /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 000000000..c04869e72 --- /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 000000000..b06bdb0d6 --- /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 000000000..00fb8e4f3 --- /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 000000000..73b68dfc0 --- /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 000000000..c05f5fef8 --- /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 000000000..bc50260ea --- /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 000000000..e512d3f9b --- /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 000000000..8fa0cc236 --- /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 000000000..e4a864251 --- /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 000000000..b11d62df6 --- /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 000000000..3a6fbe8ee --- /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 000000000..5ac1169b4 --- /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 000000000..72ef7eb63 --- /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 000000000..cf370d8ec --- /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 000000000..cb42ec4f8 --- /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 000000000..5adf760a1 --- /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 000000000..e6afafd89 --- /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 000000000..4d5fd0501 --- /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 000000000..a844aff76 --- /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 000000000..415c2d9c6 --- /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 000000000..415c2d9c6 --- /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 000000000..5495f7e43 --- /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 000000000..ab2f89274 --- /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 000000000..84a5c8f42 --- /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 000000000..fe2ff40a1 --- /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 000000000..d0a15e599 --- /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 000000000..18ab4b25d --- /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 000000000..3ebefac73 --- /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 000000000..1d8efc687 --- /dev/null +++ b/image/test/reftest/jpeg/jpg-srgb-icc.png diff --git a/image/test/reftest/jpeg/red.jpg b/image/test/reftest/jpeg/red.jpg Binary files differnew file mode 100644 index 000000000..8fca4b938 --- /dev/null +++ b/image/test/reftest/jpeg/red.jpg diff --git a/image/test/reftest/jpeg/reftest-stylo.list b/image/test/reftest/jpeg/reftest-stylo.list new file mode 100644 index 000000000..a906cde8e --- /dev/null +++ b/image/test/reftest/jpeg/reftest-stylo.list @@ -0,0 +1,57 @@ +# DO NOT EDIT! This is a auto-generated temporary list for Stylo testing +# JPEG tests + +# Images of various sizes. +fails == jpg-size-1x1.jpg jpg-size-1x1.jpg +fails == jpg-size-2x2.jpg jpg-size-2x2.jpg +fails == jpg-size-3x3.jpg jpg-size-3x3.jpg +fails == jpg-size-4x4.jpg jpg-size-4x4.jpg +fails == jpg-size-5x5.jpg jpg-size-5x5.jpg +== jpg-size-6x6.jpg jpg-size-6x6.jpg +fails == jpg-size-7x7.jpg jpg-size-7x7.jpg +fails == jpg-size-8x8.jpg jpg-size-8x8.jpg +fails == jpg-size-9x9.jpg jpg-size-9x9.jpg +fails == jpg-size-15x15.jpg jpg-size-15x15.jpg +fails == jpg-size-16x16.jpg jpg-size-16x16.jpg +fails == jpg-size-17x17.jpg jpg-size-17x17.jpg +fails == jpg-size-31x31.jpg jpg-size-31x31.jpg +fails == jpg-size-32x32.jpg jpg-size-32x32.jpg +fails == jpg-size-33x33.jpg jpg-size-33x33.jpg +# Progressive encoding +fails == jpg-progressive.jpg jpg-progressive.jpg +# Grayscale colorspace +fails == jpg-gray.jpg jpg-gray.jpg +# CMYK colorspace +fails == jpg-cmyk-1.jpg jpg-cmyk-1.jpg +fails == jpg-cmyk-2.jpg jpg-cmyk-2.jpg +# 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). +fails random-if(Android) == jpg-srgb-icc.jpg jpg-srgb-icc.jpg + +# 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.") +skip HTTP == webcam-simulacrum.mjpg webcam-simulacrum.mjpg +skip pref(image.mozsamplesize.enabled,true) == jpg-size-32x32.jpg#-moz-samplesize=2 jpg-size-32x32.jpg#-moz-samplesize=2 +skip pref(image.mozsamplesize.enabled,true) == jpg-size-32x32.jpg#-moz-samplesize=8 jpg-size-32x32.jpg#-moz-samplesize=8 diff --git a/image/test/reftest/jpeg/reftest.list b/image/test/reftest/jpeg/reftest.list new file mode 100644 index 000000000..0eafb77e7 --- /dev/null +++ b/image/test/reftest/jpeg/reftest.list @@ -0,0 +1,56 @@ +# 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 +pref(image.mozsamplesize.enabled,true) fuzzy(21,256) == jpg-size-32x32.jpg#-moz-samplesize=2 jpg-size-16x16.png +pref(image.mozsamplesize.enabled,true) fuzzy(92,16) == jpg-size-32x32.jpg#-moz-samplesize=8 jpg-size-4x4.png 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 000000000..a593273c0 --- /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 000000000..f5e846508 --- /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 |