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