image/test/reftest/jpeg/reftest.list

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/image/test/reftest/jpeg/reftest.list	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,56 @@
     1.4 +# JPEG tests 
     1.5 +
     1.6 +# Images of various sizes.
     1.7 +== jpg-size-1x1.jpg   jpg-size-1x1.png
     1.8 +== jpg-size-2x2.jpg   jpg-size-2x2.png
     1.9 +== jpg-size-3x3.jpg   jpg-size-3x3.png
    1.10 +== jpg-size-4x4.jpg   jpg-size-4x4.png
    1.11 +== jpg-size-5x5.jpg   jpg-size-5x5.png
    1.12 +== jpg-size-6x6.jpg   jpg-size-6x6.png
    1.13 +== jpg-size-7x7.jpg   jpg-size-7x7.png
    1.14 +== jpg-size-8x8.jpg   jpg-size-8x8.png
    1.15 +== jpg-size-9x9.jpg   jpg-size-9x9.png
    1.16 +== jpg-size-15x15.jpg jpg-size-15x15.png
    1.17 +== jpg-size-16x16.jpg jpg-size-16x16.png
    1.18 +== jpg-size-17x17.jpg jpg-size-17x17.png
    1.19 +== jpg-size-31x31.jpg jpg-size-31x31.png
    1.20 +== jpg-size-32x32.jpg jpg-size-32x32.png
    1.21 +== jpg-size-33x33.jpg jpg-size-33x33.png
    1.22 +# Progressive encoding
    1.23 +== jpg-progressive.jpg jpg-progressive.png
    1.24 +# Grayscale colorspace
    1.25 +== jpg-gray.jpg jpg-gray.png
    1.26 +# CMYK colorspace
    1.27 +== jpg-cmyk-1.jpg jpg-cmyk-1.png
    1.28 +== jpg-cmyk-2.jpg jpg-cmyk-2.png
    1.29 +# This intermittently fails on Android due to async image decoding (bug #685516)
    1.30 +# Sometimes the image decodes in time and the test passes, other times the image
    1.31 +# appears blank and the test fails. This only seems to be triggered since the
    1.32 +# switch to 24-bit colour (bug #803299).
    1.33 +random-if(Android) == jpg-srgb-icc.jpg jpg-srgb-icc.png
    1.34 +
    1.35 +# webcam-simulacrum.mjpg is a hand-edited file containing red.jpg and blue.jpg,
    1.36 +# concatenated together with the relevant headers for
    1.37 +# multipart/x-mixed-replace. Specifically, with the headers in
    1.38 +# webcam-simulacrum.mjpg^headers^, the web browser will get the following:
    1.39 +#
    1.40 +# HTTP 200 OK
    1.41 +# Content-Type: multipart/x-mixed-replace;boundary=BOUNDARYOMG
    1.42 +# 
    1.43 +# --BOUNDARYOMG\r\n
    1.44 +# Content-Type: image/jpeg\r\n
    1.45 +# \r\n
    1.46 +# <contents of red.jpg> (no newline)
    1.47 +# --BOUNDARYOMG\r\n
    1.48 +# Content-Type: image/jpeg\r\n
    1.49 +# \r\n
    1.50 +# <contents of blue.jpg> (no newline)
    1.51 +# --BOUNDARYOMG--\r\n
    1.52 +# 
    1.53 +# (The boundary is arbitrary, and just has to be defined as something that
    1.54 +# won't be in the text of the contents themselves. --$(boundary)\r\n means
    1.55 +# "Here is the beginning of a boundary," and --$(boundary)-- means "All done
    1.56 +# sending you parts.")
    1.57 +HTTP == webcam-simulacrum.mjpg blue.jpg
    1.58 +pref(image.mozsamplesize.enabled,true) fuzzy(21,256) == jpg-size-32x32.jpg#-moz-samplesize=2 jpg-size-16x16.png
    1.59 +pref(image.mozsamplesize.enabled,true) fuzzy(92,16) == jpg-size-32x32.jpg#-moz-samplesize=8 jpg-size-4x4.png

mercurial