image/test/reftest/downscaling/reftest.list

Wed, 31 Dec 2014 06:55:46 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:55:46 +0100
changeset 1
ca08bd8f51b2
permissions
-rw-r--r--

Added tag TORBROWSER_REPLICA for changeset 6474c204b198

michael@0 1 # Reftests for downscaling
michael@0 2 #
michael@0 3 # Downscaling can be a lossy process, so a bit of mismatch is acceptable here,
michael@0 4 # as long as it's barely noticable visually. When necessary, this can be
michael@0 5 # explicitly allowed via 'fuzzy'/'fuzzy-if' annotations.
michael@0 6 #
michael@0 7 # IMPORTANT: For robustness, each test should be listed *twice* in this
michael@0 8 # manifest -- once with the high quality downscaling pref disabled, and once
michael@0 9 # with this pref enabled. The pref is set via "default-preferences", so
michael@0 10 # simply appending a new test to the lists below each of those lines should be
michael@0 11 # sufficient.
michael@0 12 #
michael@0 13 # Also note that Mac OS X has its own system-level downscaling algorithm, so
michael@0 14 # tests here may need Mac-specific "fuzzy-if(cocoaWidget,...)" annotations.
michael@0 15
michael@0 16 # RUN TESTS WITH HIGH QUALITY DOWNSCALING DISABLED:
michael@0 17 # =================================================
michael@0 18 default-preferences pref(image.high_quality_downscaling.enabled,false)
michael@0 19
michael@0 20 fuzzy-if(cocoaWidget,106,31) == downscale-1.html downscale-1-ref.html
michael@0 21
michael@0 22
michael@0 23 # RUN TESTS WITH HIGH QUALITY DOWNSCALING ENABLED:
michael@0 24 # ================================================
michael@0 25 # High-quality downscaling enabled:
michael@0 26 default-preferences pref(image.high_quality_downscaling.enabled,true)
michael@0 27
michael@0 28 fuzzy(31,127) == downscale-1.html downscale-1-ref.html

mercurial