summaryrefslogtreecommitdiffstats
path: root/image/test/reftest/jpeg
diff options
context:
space:
mode:
Diffstat (limited to 'image/test/reftest/jpeg')
-rw-r--r--image/test/reftest/jpeg/blue.jpgbin0 -> 3937 bytes
-rw-r--r--image/test/reftest/jpeg/jpg-cmyk-1.jpgbin0 -> 1498 bytes
-rw-r--r--image/test/reftest/jpeg/jpg-cmyk-1.pngbin0 -> 2523 bytes
-rw-r--r--image/test/reftest/jpeg/jpg-cmyk-2.jpgbin0 -> 5174 bytes
-rw-r--r--image/test/reftest/jpeg/jpg-cmyk-2.pngbin0 -> 21147 bytes
-rw-r--r--image/test/reftest/jpeg/jpg-gray.jpgbin0 -> 396 bytes
-rw-r--r--image/test/reftest/jpeg/jpg-gray.pngbin0 -> 498 bytes
-rw-r--r--image/test/reftest/jpeg/jpg-progressive.jpgbin0 -> 979 bytes
-rw-r--r--image/test/reftest/jpeg/jpg-progressive.pngbin0 -> 3106 bytes
-rw-r--r--image/test/reftest/jpeg/jpg-size-15x15.jpgbin0 -> 465 bytes
-rw-r--r--image/test/reftest/jpeg/jpg-size-15x15.pngbin0 -> 809 bytes
-rw-r--r--image/test/reftest/jpeg/jpg-size-16x16.jpgbin0 -> 443 bytes
-rw-r--r--image/test/reftest/jpeg/jpg-size-16x16.pngbin0 -> 879 bytes
-rw-r--r--image/test/reftest/jpeg/jpg-size-17x17.jpgbin0 -> 582 bytes
-rw-r--r--image/test/reftest/jpeg/jpg-size-17x17.pngbin0 -> 1000 bytes
-rw-r--r--image/test/reftest/jpeg/jpg-size-1x1.jpgbin0 -> 288 bytes
-rw-r--r--image/test/reftest/jpeg/jpg-size-1x1.pngbin0 -> 70 bytes
-rw-r--r--image/test/reftest/jpeg/jpg-size-2x2.jpgbin0 -> 353 bytes
-rw-r--r--image/test/reftest/jpeg/jpg-size-2x2.pngbin0 -> 83 bytes
-rw-r--r--image/test/reftest/jpeg/jpg-size-31x31.jpgbin0 -> 773 bytes
-rw-r--r--image/test/reftest/jpeg/jpg-size-31x31.pngbin0 -> 2936 bytes
-rw-r--r--image/test/reftest/jpeg/jpg-size-32x32.jpgbin0 -> 759 bytes
-rw-r--r--image/test/reftest/jpeg/jpg-size-32x32.pngbin0 -> 3106 bytes
-rw-r--r--image/test/reftest/jpeg/jpg-size-33x33.jpgbin0 -> 941 bytes
-rw-r--r--image/test/reftest/jpeg/jpg-size-33x33.pngbin0 -> 3303 bytes
-rw-r--r--image/test/reftest/jpeg/jpg-size-3x3.jpgbin0 -> 429 bytes
-rw-r--r--image/test/reftest/jpeg/jpg-size-3x3.pngbin0 -> 107 bytes
-rw-r--r--image/test/reftest/jpeg/jpg-size-4x4.jpgbin0 -> 427 bytes
-rw-r--r--image/test/reftest/jpeg/jpg-size-4x4.pngbin0 -> 136 bytes
-rw-r--r--image/test/reftest/jpeg/jpg-size-5x5.jpgbin0 -> 421 bytes
-rw-r--r--image/test/reftest/jpeg/jpg-size-5x5.pngbin0 -> 173 bytes
-rw-r--r--image/test/reftest/jpeg/jpg-size-6x6.jpgbin0 -> 218 bytes
-rw-r--r--image/test/reftest/jpeg/jpg-size-6x6.pngbin0 -> 218 bytes
-rw-r--r--image/test/reftest/jpeg/jpg-size-7x7.jpgbin0 -> 420 bytes
-rw-r--r--image/test/reftest/jpeg/jpg-size-7x7.pngbin0 -> 271 bytes
-rw-r--r--image/test/reftest/jpeg/jpg-size-8x8.jpgbin0 -> 412 bytes
-rw-r--r--image/test/reftest/jpeg/jpg-size-8x8.pngbin0 -> 313 bytes
-rw-r--r--image/test/reftest/jpeg/jpg-size-9x9.jpgbin0 -> 438 bytes
-rw-r--r--image/test/reftest/jpeg/jpg-size-9x9.pngbin0 -> 368 bytes
-rw-r--r--image/test/reftest/jpeg/jpg-srgb-icc.jpgbin0 -> 3226 bytes
-rw-r--r--image/test/reftest/jpeg/jpg-srgb-icc.pngbin0 -> 2738 bytes
-rw-r--r--image/test/reftest/jpeg/red.jpgbin0 -> 3938 bytes
-rw-r--r--image/test/reftest/jpeg/reftest-stylo.list57
-rw-r--r--image/test/reftest/jpeg/reftest.list56
-rw-r--r--image/test/reftest/jpeg/webcam-simulacrum.mjpgbin0 -> 7978 bytes
-rw-r--r--image/test/reftest/jpeg/webcam-simulacrum.mjpg^headers^3
46 files changed, 116 insertions, 0 deletions
diff --git a/image/test/reftest/jpeg/blue.jpg b/image/test/reftest/jpeg/blue.jpg
new file mode 100644
index 000000000..b5fef5d26
--- /dev/null
+++ b/image/test/reftest/jpeg/blue.jpg
Binary files differ
diff --git a/image/test/reftest/jpeg/jpg-cmyk-1.jpg b/image/test/reftest/jpeg/jpg-cmyk-1.jpg
new file mode 100644
index 000000000..ddb2c106f
--- /dev/null
+++ b/image/test/reftest/jpeg/jpg-cmyk-1.jpg
Binary files differ
diff --git a/image/test/reftest/jpeg/jpg-cmyk-1.png b/image/test/reftest/jpeg/jpg-cmyk-1.png
new file mode 100644
index 000000000..06915d5bc
--- /dev/null
+++ b/image/test/reftest/jpeg/jpg-cmyk-1.png
Binary files differ
diff --git a/image/test/reftest/jpeg/jpg-cmyk-2.jpg b/image/test/reftest/jpeg/jpg-cmyk-2.jpg
new file mode 100644
index 000000000..b955bde54
--- /dev/null
+++ b/image/test/reftest/jpeg/jpg-cmyk-2.jpg
Binary files differ
diff --git a/image/test/reftest/jpeg/jpg-cmyk-2.png b/image/test/reftest/jpeg/jpg-cmyk-2.png
new file mode 100644
index 000000000..9691e42b6
--- /dev/null
+++ b/image/test/reftest/jpeg/jpg-cmyk-2.png
Binary files differ
diff --git a/image/test/reftest/jpeg/jpg-gray.jpg b/image/test/reftest/jpeg/jpg-gray.jpg
new file mode 100644
index 000000000..af0413e3c
--- /dev/null
+++ b/image/test/reftest/jpeg/jpg-gray.jpg
Binary files differ
diff --git a/image/test/reftest/jpeg/jpg-gray.png b/image/test/reftest/jpeg/jpg-gray.png
new file mode 100644
index 000000000..c5aedc34d
--- /dev/null
+++ b/image/test/reftest/jpeg/jpg-gray.png
Binary files differ
diff --git a/image/test/reftest/jpeg/jpg-progressive.jpg b/image/test/reftest/jpeg/jpg-progressive.jpg
new file mode 100644
index 000000000..db3cf59c2
--- /dev/null
+++ b/image/test/reftest/jpeg/jpg-progressive.jpg
Binary files differ
diff --git a/image/test/reftest/jpeg/jpg-progressive.png b/image/test/reftest/jpeg/jpg-progressive.png
new file mode 100644
index 000000000..3a6fbe8ee
--- /dev/null
+++ b/image/test/reftest/jpeg/jpg-progressive.png
Binary files differ
diff --git a/image/test/reftest/jpeg/jpg-size-15x15.jpg b/image/test/reftest/jpeg/jpg-size-15x15.jpg
new file mode 100644
index 000000000..efe120a27
--- /dev/null
+++ b/image/test/reftest/jpeg/jpg-size-15x15.jpg
Binary files differ
diff --git a/image/test/reftest/jpeg/jpg-size-15x15.png b/image/test/reftest/jpeg/jpg-size-15x15.png
new file mode 100644
index 000000000..e1287430d
--- /dev/null
+++ b/image/test/reftest/jpeg/jpg-size-15x15.png
Binary files differ
diff --git a/image/test/reftest/jpeg/jpg-size-16x16.jpg b/image/test/reftest/jpeg/jpg-size-16x16.jpg
new file mode 100644
index 000000000..148ec733f
--- /dev/null
+++ b/image/test/reftest/jpeg/jpg-size-16x16.jpg
Binary files differ
diff --git a/image/test/reftest/jpeg/jpg-size-16x16.png b/image/test/reftest/jpeg/jpg-size-16x16.png
new file mode 100644
index 000000000..c04869e72
--- /dev/null
+++ b/image/test/reftest/jpeg/jpg-size-16x16.png
Binary files differ
diff --git a/image/test/reftest/jpeg/jpg-size-17x17.jpg b/image/test/reftest/jpeg/jpg-size-17x17.jpg
new file mode 100644
index 000000000..b06bdb0d6
--- /dev/null
+++ b/image/test/reftest/jpeg/jpg-size-17x17.jpg
Binary files differ
diff --git a/image/test/reftest/jpeg/jpg-size-17x17.png b/image/test/reftest/jpeg/jpg-size-17x17.png
new file mode 100644
index 000000000..00fb8e4f3
--- /dev/null
+++ b/image/test/reftest/jpeg/jpg-size-17x17.png
Binary files differ
diff --git a/image/test/reftest/jpeg/jpg-size-1x1.jpg b/image/test/reftest/jpeg/jpg-size-1x1.jpg
new file mode 100644
index 000000000..73b68dfc0
--- /dev/null
+++ b/image/test/reftest/jpeg/jpg-size-1x1.jpg
Binary files differ
diff --git a/image/test/reftest/jpeg/jpg-size-1x1.png b/image/test/reftest/jpeg/jpg-size-1x1.png
new file mode 100644
index 000000000..c05f5fef8
--- /dev/null
+++ b/image/test/reftest/jpeg/jpg-size-1x1.png
Binary files differ
diff --git a/image/test/reftest/jpeg/jpg-size-2x2.jpg b/image/test/reftest/jpeg/jpg-size-2x2.jpg
new file mode 100644
index 000000000..bc50260ea
--- /dev/null
+++ b/image/test/reftest/jpeg/jpg-size-2x2.jpg
Binary files differ
diff --git a/image/test/reftest/jpeg/jpg-size-2x2.png b/image/test/reftest/jpeg/jpg-size-2x2.png
new file mode 100644
index 000000000..e512d3f9b
--- /dev/null
+++ b/image/test/reftest/jpeg/jpg-size-2x2.png
Binary files differ
diff --git a/image/test/reftest/jpeg/jpg-size-31x31.jpg b/image/test/reftest/jpeg/jpg-size-31x31.jpg
new file mode 100644
index 000000000..8fa0cc236
--- /dev/null
+++ b/image/test/reftest/jpeg/jpg-size-31x31.jpg
Binary files differ
diff --git a/image/test/reftest/jpeg/jpg-size-31x31.png b/image/test/reftest/jpeg/jpg-size-31x31.png
new file mode 100644
index 000000000..e4a864251
--- /dev/null
+++ b/image/test/reftest/jpeg/jpg-size-31x31.png
Binary files differ
diff --git a/image/test/reftest/jpeg/jpg-size-32x32.jpg b/image/test/reftest/jpeg/jpg-size-32x32.jpg
new file mode 100644
index 000000000..b11d62df6
--- /dev/null
+++ b/image/test/reftest/jpeg/jpg-size-32x32.jpg
Binary files differ
diff --git a/image/test/reftest/jpeg/jpg-size-32x32.png b/image/test/reftest/jpeg/jpg-size-32x32.png
new file mode 100644
index 000000000..3a6fbe8ee
--- /dev/null
+++ b/image/test/reftest/jpeg/jpg-size-32x32.png
Binary files differ
diff --git a/image/test/reftest/jpeg/jpg-size-33x33.jpg b/image/test/reftest/jpeg/jpg-size-33x33.jpg
new file mode 100644
index 000000000..5ac1169b4
--- /dev/null
+++ b/image/test/reftest/jpeg/jpg-size-33x33.jpg
Binary files differ
diff --git a/image/test/reftest/jpeg/jpg-size-33x33.png b/image/test/reftest/jpeg/jpg-size-33x33.png
new file mode 100644
index 000000000..72ef7eb63
--- /dev/null
+++ b/image/test/reftest/jpeg/jpg-size-33x33.png
Binary files differ
diff --git a/image/test/reftest/jpeg/jpg-size-3x3.jpg b/image/test/reftest/jpeg/jpg-size-3x3.jpg
new file mode 100644
index 000000000..cf370d8ec
--- /dev/null
+++ b/image/test/reftest/jpeg/jpg-size-3x3.jpg
Binary files differ
diff --git a/image/test/reftest/jpeg/jpg-size-3x3.png b/image/test/reftest/jpeg/jpg-size-3x3.png
new file mode 100644
index 000000000..cb42ec4f8
--- /dev/null
+++ b/image/test/reftest/jpeg/jpg-size-3x3.png
Binary files differ
diff --git a/image/test/reftest/jpeg/jpg-size-4x4.jpg b/image/test/reftest/jpeg/jpg-size-4x4.jpg
new file mode 100644
index 000000000..5adf760a1
--- /dev/null
+++ b/image/test/reftest/jpeg/jpg-size-4x4.jpg
Binary files differ
diff --git a/image/test/reftest/jpeg/jpg-size-4x4.png b/image/test/reftest/jpeg/jpg-size-4x4.png
new file mode 100644
index 000000000..e6afafd89
--- /dev/null
+++ b/image/test/reftest/jpeg/jpg-size-4x4.png
Binary files differ
diff --git a/image/test/reftest/jpeg/jpg-size-5x5.jpg b/image/test/reftest/jpeg/jpg-size-5x5.jpg
new file mode 100644
index 000000000..4d5fd0501
--- /dev/null
+++ b/image/test/reftest/jpeg/jpg-size-5x5.jpg
Binary files differ
diff --git a/image/test/reftest/jpeg/jpg-size-5x5.png b/image/test/reftest/jpeg/jpg-size-5x5.png
new file mode 100644
index 000000000..a844aff76
--- /dev/null
+++ b/image/test/reftest/jpeg/jpg-size-5x5.png
Binary files differ
diff --git a/image/test/reftest/jpeg/jpg-size-6x6.jpg b/image/test/reftest/jpeg/jpg-size-6x6.jpg
new file mode 100644
index 000000000..415c2d9c6
--- /dev/null
+++ b/image/test/reftest/jpeg/jpg-size-6x6.jpg
Binary files differ
diff --git a/image/test/reftest/jpeg/jpg-size-6x6.png b/image/test/reftest/jpeg/jpg-size-6x6.png
new file mode 100644
index 000000000..415c2d9c6
--- /dev/null
+++ b/image/test/reftest/jpeg/jpg-size-6x6.png
Binary files differ
diff --git a/image/test/reftest/jpeg/jpg-size-7x7.jpg b/image/test/reftest/jpeg/jpg-size-7x7.jpg
new file mode 100644
index 000000000..5495f7e43
--- /dev/null
+++ b/image/test/reftest/jpeg/jpg-size-7x7.jpg
Binary files differ
diff --git a/image/test/reftest/jpeg/jpg-size-7x7.png b/image/test/reftest/jpeg/jpg-size-7x7.png
new file mode 100644
index 000000000..ab2f89274
--- /dev/null
+++ b/image/test/reftest/jpeg/jpg-size-7x7.png
Binary files differ
diff --git a/image/test/reftest/jpeg/jpg-size-8x8.jpg b/image/test/reftest/jpeg/jpg-size-8x8.jpg
new file mode 100644
index 000000000..84a5c8f42
--- /dev/null
+++ b/image/test/reftest/jpeg/jpg-size-8x8.jpg
Binary files differ
diff --git a/image/test/reftest/jpeg/jpg-size-8x8.png b/image/test/reftest/jpeg/jpg-size-8x8.png
new file mode 100644
index 000000000..fe2ff40a1
--- /dev/null
+++ b/image/test/reftest/jpeg/jpg-size-8x8.png
Binary files differ
diff --git a/image/test/reftest/jpeg/jpg-size-9x9.jpg b/image/test/reftest/jpeg/jpg-size-9x9.jpg
new file mode 100644
index 000000000..d0a15e599
--- /dev/null
+++ b/image/test/reftest/jpeg/jpg-size-9x9.jpg
Binary files differ
diff --git a/image/test/reftest/jpeg/jpg-size-9x9.png b/image/test/reftest/jpeg/jpg-size-9x9.png
new file mode 100644
index 000000000..18ab4b25d
--- /dev/null
+++ b/image/test/reftest/jpeg/jpg-size-9x9.png
Binary files differ
diff --git a/image/test/reftest/jpeg/jpg-srgb-icc.jpg b/image/test/reftest/jpeg/jpg-srgb-icc.jpg
new file mode 100644
index 000000000..3ebefac73
--- /dev/null
+++ b/image/test/reftest/jpeg/jpg-srgb-icc.jpg
Binary files differ
diff --git a/image/test/reftest/jpeg/jpg-srgb-icc.png b/image/test/reftest/jpeg/jpg-srgb-icc.png
new file mode 100644
index 000000000..1d8efc687
--- /dev/null
+++ b/image/test/reftest/jpeg/jpg-srgb-icc.png
Binary files differ
diff --git a/image/test/reftest/jpeg/red.jpg b/image/test/reftest/jpeg/red.jpg
new file mode 100644
index 000000000..8fca4b938
--- /dev/null
+++ b/image/test/reftest/jpeg/red.jpg
Binary files differ
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
new file mode 100644
index 000000000..a593273c0
--- /dev/null
+++ b/image/test/reftest/jpeg/webcam-simulacrum.mjpg
Binary files differ
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