michael@0: # JPEG tests michael@0: michael@0: # Images of various sizes. michael@0: == jpg-size-1x1.jpg jpg-size-1x1.png michael@0: == jpg-size-2x2.jpg jpg-size-2x2.png michael@0: == jpg-size-3x3.jpg jpg-size-3x3.png michael@0: == jpg-size-4x4.jpg jpg-size-4x4.png michael@0: == jpg-size-5x5.jpg jpg-size-5x5.png michael@0: == jpg-size-6x6.jpg jpg-size-6x6.png michael@0: == jpg-size-7x7.jpg jpg-size-7x7.png michael@0: == jpg-size-8x8.jpg jpg-size-8x8.png michael@0: == jpg-size-9x9.jpg jpg-size-9x9.png michael@0: == jpg-size-15x15.jpg jpg-size-15x15.png michael@0: == jpg-size-16x16.jpg jpg-size-16x16.png michael@0: == jpg-size-17x17.jpg jpg-size-17x17.png michael@0: == jpg-size-31x31.jpg jpg-size-31x31.png michael@0: == jpg-size-32x32.jpg jpg-size-32x32.png michael@0: == jpg-size-33x33.jpg jpg-size-33x33.png michael@0: # Progressive encoding michael@0: == jpg-progressive.jpg jpg-progressive.png michael@0: # Grayscale colorspace michael@0: == jpg-gray.jpg jpg-gray.png michael@0: # CMYK colorspace michael@0: == jpg-cmyk-1.jpg jpg-cmyk-1.png michael@0: == jpg-cmyk-2.jpg jpg-cmyk-2.png michael@0: # This intermittently fails on Android due to async image decoding (bug #685516) michael@0: # Sometimes the image decodes in time and the test passes, other times the image michael@0: # appears blank and the test fails. This only seems to be triggered since the michael@0: # switch to 24-bit colour (bug #803299). michael@0: random-if(Android) == jpg-srgb-icc.jpg jpg-srgb-icc.png michael@0: michael@0: # webcam-simulacrum.mjpg is a hand-edited file containing red.jpg and blue.jpg, michael@0: # concatenated together with the relevant headers for michael@0: # multipart/x-mixed-replace. Specifically, with the headers in michael@0: # webcam-simulacrum.mjpg^headers^, the web browser will get the following: michael@0: # michael@0: # HTTP 200 OK michael@0: # Content-Type: multipart/x-mixed-replace;boundary=BOUNDARYOMG michael@0: # michael@0: # --BOUNDARYOMG\r\n michael@0: # Content-Type: image/jpeg\r\n michael@0: # \r\n michael@0: # (no newline) michael@0: # --BOUNDARYOMG\r\n michael@0: # Content-Type: image/jpeg\r\n michael@0: # \r\n michael@0: # (no newline) michael@0: # --BOUNDARYOMG--\r\n michael@0: # michael@0: # (The boundary is arbitrary, and just has to be defined as something that michael@0: # won't be in the text of the contents themselves. --$(boundary)\r\n means michael@0: # "Here is the beginning of a boundary," and --$(boundary)-- means "All done michael@0: # sending you parts.") michael@0: HTTP == webcam-simulacrum.mjpg blue.jpg michael@0: pref(image.mozsamplesize.enabled,true) fuzzy(21,256) == jpg-size-32x32.jpg#-moz-samplesize=2 jpg-size-16x16.png michael@0: pref(image.mozsamplesize.enabled,true) fuzzy(92,16) == jpg-size-32x32.jpg#-moz-samplesize=8 jpg-size-4x4.png