2008-02-15 14:13:55 -08:00
|
|
|
# JPEG tests
|
|
|
|
|
|
|
|
# Images of various sizes.
|
|
|
|
== jpg-size-1x1.jpg jpg-size-1x1.png
|
2010-08-11 12:32:53 -07:00
|
|
|
fails-if(xulRuntime.XPCOMABI=="x86-msvc") == jpg-size-2x2.jpg jpg-size-2x2.png
|
2008-02-15 14:13:55 -08:00
|
|
|
== jpg-size-3x3.jpg jpg-size-3x3.png
|
|
|
|
== jpg-size-4x4.jpg jpg-size-4x4.png
|
2010-08-11 12:32:53 -07:00
|
|
|
fails-if(xulRuntime.XPCOMABI=="x86-msvc") == jpg-size-5x5.jpg jpg-size-5x5.png
|
2008-02-15 14:13:55 -08:00
|
|
|
== jpg-size-6x6.jpg jpg-size-6x6.png
|
2010-08-11 12:32:53 -07:00
|
|
|
fails-if(xulRuntime.XPCOMABI=="x86-msvc") == jpg-size-7x7.jpg jpg-size-7x7.png
|
2008-02-15 14:13:55 -08:00
|
|
|
== jpg-size-8x8.jpg jpg-size-8x8.png
|
2010-08-11 12:32:53 -07:00
|
|
|
fails-if(xulRuntime.XPCOMABI=="x86-msvc") == jpg-size-9x9.jpg jpg-size-9x9.png
|
|
|
|
fails-if(xulRuntime.XPCOMABI=="x86-msvc") == jpg-size-15x15.jpg jpg-size-15x15.png
|
|
|
|
fails-if(xulRuntime.XPCOMABI=="x86-msvc") == jpg-size-16x16.jpg jpg-size-16x16.png
|
|
|
|
fails-if(xulRuntime.XPCOMABI=="x86-msvc") == jpg-size-17x17.jpg jpg-size-17x17.png
|
|
|
|
fails-if(xulRuntime.XPCOMABI=="x86-msvc") == jpg-size-31x31.jpg jpg-size-31x31.png
|
|
|
|
fails-if(xulRuntime.XPCOMABI=="x86-msvc") == jpg-size-32x32.jpg jpg-size-32x32.png
|
|
|
|
fails-if(xulRuntime.XPCOMABI=="x86-msvc") == jpg-size-33x33.jpg jpg-size-33x33.png
|
2008-02-15 14:13:55 -08:00
|
|
|
# Progressive encoding
|
2010-08-11 12:32:53 -07:00
|
|
|
fails-if(xulRuntime.XPCOMABI=="x86-msvc") == jpg-progressive.jpg jpg-progressive.png
|
2008-02-15 14:13:55 -08:00
|
|
|
# Grayscale colorspace
|
2010-08-11 12:32:53 -07:00
|
|
|
fails-if(xulRuntime.XPCOMABI=="x86-msvc") == jpg-gray.jpg jpg-gray.png
|
2008-02-15 14:13:55 -08:00
|
|
|
# CMYK colorspace
|
2010-08-11 12:32:53 -07:00
|
|
|
fails-if(xulRuntime.XPCOMABI=="x86-msvc") == jpg-cmyk-1.jpg jpg-cmyk-1.png
|
|
|
|
fails-if(xulRuntime.XPCOMABI=="x86-msvc") == jpg-cmyk-2.jpg jpg-cmyk-2.png
|
2009-08-13 15:33:24 -07:00
|
|
|
== jpg-srgb-icc.jpg jpg-srgb-icc.png
|
2010-03-08 11:01:07 -08:00
|
|
|
|
|
|
|
# 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
|