downscaling_reftest.list (12151B)
1 # Reftests for downscaling 2 # 3 # Downscaling can be a lossy process, so a bit of mismatch is acceptable here, 4 # as long as it's barely noticeable visually. When necessary, this can be 5 # explicitly allowed via 'fuzzy'/'fuzzy-if' annotations. 6 # 7 # Many of these tests check primarily that we don't lose rows or columns of 8 # pixels when downscaling by making sure that the result isn't too similar to 9 # about:blank. A small amount of fuzziness is used to ensure that the tests 10 # don't pass because of very slight deviations; passing tests should be 11 # substantially different from about:blank. This fuzziness should *not* be 12 # removed as doing so would make the tests pass in situations where they 13 # shouldn't. 14 # 15 # IMPORTANT: For robustness, each test should be listed *twice* in this 16 # manifest -- once with the high quality downscaling pref disabled, and once 17 # with this pref enabled. The pref is set via "defaults", so 18 # simply appending a new test to the lists below each of those lines should be 19 # sufficient. 20 # 21 # Also note that Mac OS X has its own system-level downscaling algorithm, so 22 # tests here may need Mac-specific "fuzzy-if(cocoaWidget,...)" annotations. 23 # Similarly, modern versions of Windows have slightly different downscaling 24 # behavior than other platforms, and may require "fuzzy-if(winWidget,...)". 25 26 27 # RUN TESTS NOT AFFECTED BY DOWNSCALE-DURING-DECODE: 28 # ================================================== 29 fuzzy(0-14,0-416) == downscale-svg-1a.html downscale-svg-1-ref.html?80 30 fuzzy(65-65,468-480) == downscale-svg-1b.html downscale-svg-1-ref.html?72 31 fuzzy(0-8,0-292) == downscale-svg-1c.html downscale-svg-1-ref.html?64 32 fuzzy(7-7,208-208) == downscale-svg-1d.html downscale-svg-1-ref.html?53 33 fuzzy(54-55,178-178) == downscale-svg-1e.html downscale-svg-1-ref.html?40 34 fuzzy(64-64,31-31) == downscale-svg-1f.html downscale-svg-1-ref.html?24 35 36 # RUN TESTS WITH DOWNSCALE-DURING-DECODE DISABLED: 37 # ================================================ 38 defaults pref(image.downscale-during-decode.enabled,false) 39 40 fuzzy-if(winWidget,0-16,0-20) fuzzy-if(cocoaWidget,0-106,0-31) == downscale-1.html downscale-1-ref.html 41 42 fuzzy(0-20,0-999) != downscale-2a.html?203,52,left about:blank 43 fuzzy(0-20,0-999) != downscale-2b.html?203,52,left about:blank 44 fuzzy(0-20,0-999) != downscale-2c.html?203,52,left about:blank 45 fuzzy(0-20,0-999) != downscale-2d.html?203,52,left about:blank 46 fuzzy(0-20,0-999) != downscale-2e.html?203,52,left about:blank 47 48 fuzzy(0-20,0-999) != downscale-2a.html?205,53,left about:blank 49 fuzzy(0-20,0-999) != downscale-2b.html?205,53,left about:blank 50 fuzzy(0-20,0-999) != downscale-2c.html?205,53,left about:blank 51 fuzzy(0-20,0-999) != downscale-2d.html?205,53,left about:blank 52 fuzzy(0-20,0-999) != downscale-2e.html?205,53,left about:blank 53 54 fuzzy(0-20,0-999) != downscale-2a.html?203,52,right about:blank 55 fuzzy(0-20,0-999) != downscale-2b.html?203,52,right about:blank 56 fuzzy(0-20,0-999) != downscale-2c.html?203,52,right about:blank 57 fuzzy(0-20,0-999) != downscale-2d.html?203,52,right about:blank 58 fuzzy(0-20,0-999) != downscale-2e.html?203,52,right about:blank 59 60 fuzzy(0-20,0-999) != downscale-2a.html?205,53,right about:blank 61 fuzzy(0-20,0-999) != downscale-2b.html?205,53,right about:blank 62 fuzzy(0-20,0-999) != downscale-2c.html?205,53,right about:blank 63 fuzzy(0-20,0-999) != downscale-2d.html?205,53,right about:blank 64 fuzzy(0-20,0-999) != downscale-2e.html?205,53,right about:blank 65 66 fuzzy(0-20,0-999) != downscale-2a.html?203,52,top about:blank 67 fuzzy(0-20,0-999) != downscale-2b.html?203,52,top about:blank 68 fuzzy(0-20,0-999) != downscale-2c.html?203,52,top about:blank 69 fuzzy(0-20,0-999) != downscale-2d.html?203,52,top about:blank 70 fuzzy(0-20,0-999) != downscale-2e.html?203,52,top about:blank 71 72 fuzzy(0-20,0-999) != downscale-2a.html?205,53,top about:blank 73 fuzzy(0-20,0-999) != downscale-2b.html?205,53,top about:blank 74 fuzzy(0-20,0-999) != downscale-2c.html?205,53,top about:blank 75 fuzzy(0-20,0-999) != downscale-2d.html?205,53,top about:blank 76 fuzzy(0-20,0-999) != downscale-2e.html?205,53,top about:blank 77 78 fuzzy(0-20,0-999) != downscale-2a.html?203,52,bottom about:blank 79 fuzzy(0-20,0-999) != downscale-2b.html?203,52,bottom about:blank 80 fuzzy(0-20,0-999) != downscale-2c.html?203,52,bottom about:blank 81 fuzzy(0-20,0-999) != downscale-2d.html?203,52,bottom about:blank 82 fuzzy(0-20,0-999) != downscale-2e.html?203,52,bottom about:blank 83 84 fuzzy(0-20,0-999) != downscale-2a.html?205,53,bottom about:blank 85 fuzzy(0-20,0-999) != downscale-2b.html?205,53,bottom about:blank 86 fuzzy(0-20,0-999) != downscale-2c.html?205,53,bottom about:blank 87 fuzzy(0-20,0-999) != downscale-2d.html?205,53,bottom about:blank 88 fuzzy(0-20,0-999) != downscale-2e.html?205,53,bottom about:blank 89 90 # Skip on Android because it runs reftests via http, and moz-icon isn't 91 # accessible from http/https origins anymore. 92 fuzzy(0-27,0-3940) fuzzy-if(gtkWidget,0-0,0-0) skip-if(Android) fuzzy-if(appleSilicon,0-20,0-10123) == downscale-moz-icon-1.html downscale-moz-icon-1-ref.html # gtkWidget Bug 1592059: regular is 2616, no-accel is 0, qr passes with 0 93 94 == downscale-png.html?16,16,interlaced downscale-png.html?16,16,normal 95 == downscale-png.html?24,24,interlaced downscale-png.html?24,24,normal 96 97 # Non-transparent and transparent ICO images 98 == downscale-16px.html?ff-0RGB.ico downscale-16px.html?ff-0RGB.png 99 fuzzy(0-1,0-1) fuzzy-if(gtkWidget&&swgl,1-1,1-1) == downscale-16px.html?ff-ARGB.ico downscale-16px.html?ff-ARGB.png 100 101 # Test downscaling from all supported formats from 256 to 32. 102 == downscale-32px.html?.bmp downscale-32px-ref.html 103 == downscale-32px.html?.gif downscale-32px-ref.html 104 fuzzy(0-1,0-1024) == downscale-32px.html?.jpg downscale-32px-ref.html 105 == downscale-32px.html?.png downscale-32px-ref.html 106 == downscale-32px.html?.svg downscale-32px-ref.html 107 == downscale-32px.html?-bmp-in.ico downscale-32px-ref.html 108 == downscale-32px.html?-png-in.ico downscale-32px-ref.html 109 110 # Test downscaling a JPEG with orientation metadata. 111 fuzzy(0-1,0-50) == downscale-orient.html downscale-orient-ref.html 112 113 # be careful changing fuzzy, the bug this test is testing is if the shade of orange is too dark 114 fuzzy(0-1,0-144) == 1919368-1.html 1919368-1-ref.html 115 116 117 118 119 # RUN TESTS WITH DOWNSCALE-DURING-DECODE ENABLED: 120 # =============================================== 121 defaults pref(image.downscale-during-decode.enabled,true) 122 123 fuzzy(0-31,0-127) fuzzy-if(winWidget,0-31,0-147) == downscale-1.html downscale-1-ref.html # intermittently 147 pixels on win7 accelerated only (not win8) 124 125 fuzzy(0-20,0-999) != downscale-2a.html?203,52,left about:blank 126 fuzzy(0-20,0-999) != downscale-2b.html?203,52,left about:blank 127 fuzzy(0-20,0-999) != downscale-2c.html?203,52,left about:blank 128 fuzzy(0-20,0-999) != downscale-2d.html?203,52,left about:blank 129 fuzzy(0-20,0-999) != downscale-2e.html?203,52,left about:blank 130 fuzzy(0-20,0-999) != downscale-2f.html?203,52,left about:blank 131 132 fuzzy(0-20,0-999) != downscale-2a.html?205,53,left about:blank 133 fuzzy(0-20,0-999) != downscale-2b.html?205,53,left about:blank 134 fuzzy(0-20,0-999) != downscale-2c.html?205,53,left about:blank 135 fuzzy(0-20,0-999) != downscale-2d.html?205,53,left about:blank 136 fuzzy(0-20,0-999) != downscale-2e.html?205,53,left about:blank 137 fuzzy(0-20,0-999) != downscale-2f.html?205,53,left about:blank 138 139 fuzzy(0-20,0-999) != downscale-2a.html?203,52,right about:blank 140 fuzzy(0-20,0-999) != downscale-2b.html?203,52,right about:blank 141 fuzzy(0-20,0-999) != downscale-2c.html?203,52,right about:blank 142 fuzzy(0-20,0-999) != downscale-2d.html?203,52,right about:blank 143 fuzzy(0-20,0-999) != downscale-2e.html?203,52,right about:blank 144 fuzzy(0-20,0-999) != downscale-2f.html?203,52,right about:blank 145 146 fuzzy(0-20,0-999) != downscale-2a.html?205,53,right about:blank 147 fuzzy(0-20,0-999) != downscale-2b.html?205,53,right about:blank 148 fuzzy(0-20,0-999) != downscale-2c.html?205,53,right about:blank 149 fuzzy(0-20,0-999) != downscale-2d.html?205,53,right about:blank 150 fuzzy(0-20,0-999) != downscale-2e.html?205,53,right about:blank 151 fuzzy(0-20,0-999) != downscale-2f.html?205,53,right about:blank 152 153 fuzzy(0-20,0-999) != downscale-2a.html?203,52,top about:blank 154 fuzzy(0-20,0-999) != downscale-2b.html?203,52,top about:blank 155 fuzzy(0-20,0-999) != downscale-2c.html?203,52,top about:blank 156 fuzzy(0-20,0-999) != downscale-2d.html?203,52,top about:blank 157 fuzzy(0-20,0-999) != downscale-2e.html?203,52,top about:blank 158 fuzzy(0-20,0-999) != downscale-2f.html?203,52,top about:blank 159 160 fuzzy(0-20,0-999) != downscale-2a.html?205,53,top about:blank 161 fuzzy(0-20,0-999) != downscale-2b.html?205,53,top about:blank 162 fuzzy(0-20,0-999) != downscale-2c.html?205,53,top about:blank 163 fuzzy(0-20,0-999) != downscale-2d.html?205,53,top about:blank 164 fuzzy(0-20,0-999) != downscale-2e.html?205,53,top about:blank 165 fuzzy(0-20,0-999) != downscale-2f.html?205,53,top about:blank 166 167 fuzzy(0-20,0-999) != downscale-2a.html?203,52,bottom about:blank 168 fuzzy(0-20,0-999) != downscale-2b.html?203,52,bottom about:blank 169 fuzzy(0-20,0-999) != downscale-2c.html?203,52,bottom about:blank 170 fuzzy(0-20,0-999) != downscale-2d.html?203,52,bottom about:blank 171 fuzzy(0-20,0-999) != downscale-2e.html?203,52,bottom about:blank 172 fuzzy(0-20,0-999) != downscale-2f.html?203,52,bottom about:blank 173 174 fuzzy(0-20,0-999) != downscale-2a.html?205,53,bottom about:blank 175 fuzzy(0-20,0-999) != downscale-2b.html?205,53,bottom about:blank 176 fuzzy(0-20,0-999) != downscale-2c.html?205,53,bottom about:blank 177 fuzzy(0-20,0-999) != downscale-2d.html?205,53,bottom about:blank 178 fuzzy(0-20,0-999) != downscale-2e.html?205,53,bottom about:blank 179 fuzzy(0-20,0-999) != downscale-2f.html?205,53,bottom about:blank 180 181 # Skip on Android because it runs reftests via http, and moz-icon isn't 182 # accessible from http/https origins anymore. 183 fuzzy(0-53,0-6391) fuzzy-if(appleSilicon,0-20,0-11605) fuzzy-if(gtkWidget,18-19,5502-5568) skip-if(Android) == downscale-moz-icon-1.html downscale-moz-icon-1-ref.html # gtkWidget Bug 1592059 184 185 == downscale-png.html?16,16,interlaced downscale-png.html?16,16,normal 186 == downscale-png.html?24,24,interlaced downscale-png.html?24,24,normal 187 188 # Non-transparent and transparent ICO images 189 fuzzy(0-1,0-3) == downscale-16px.html?ff-0RGB.ico downscale-16px.html?ff-0RGB.png 190 fuzzy(0-3,0-32) fuzzy-if(swgl,3-3,33-33) == downscale-16px.html?ff-ARGB.ico downscale-16px.html?ff-ARGB.png 191 192 # Upside-down (negative height) BMP 193 == downscale-8px.html?top-to-bottom-16x16-24bpp.bmp downscale-8px.html?bmp-size-16x16-24bpp.png 194 195 # Test downscaling from all supported formats from 256 to 32. 196 fuzzy(0-18,0-128) == downscale-32px.html?.bmp downscale-32px-ref.html 197 fuzzy(0-18,0-128) == downscale-32px.html?.gif downscale-32px-ref.html 198 fuzzy(0-19,0-992) == downscale-32px.html?.jpg downscale-32px-ref.html 199 fuzzy(0-18,0-128) == downscale-32px.html?.png downscale-32px-ref.html 200 == downscale-32px.html?.svg downscale-32px-ref.html 201 fuzzy(0-18,0-128) == downscale-32px.html?-bmp-in.ico downscale-32px-ref.html 202 fuzzy(0-18,0-128) == downscale-32px.html?-png-in.ico downscale-32px-ref.html 203 204 # Test downscaling a JPEG with orientation metadata. 205 fuzzy(0-4,0-18) == downscale-orient.html downscale-orient-ref.html 206 207 # Test images taller or wider than 32767 pixels. 208 == huge-1.html?100x32768.png,100,100 huge-1.html?100x100.png,100,100 209 == huge-1.html?100x32768.png,100,32768 huge-1.html?100x100.png,100,32768 210 == huge-1.html?32768x100.png,100,100 huge-1.html?100x100.png,100,100 211 == huge-1.html?32768x100.png,32768,100 huge-1.html?100x100.png,32768,100 212 == huge-1.html?100x32768.gif,100,100 huge-1.html?100x100.gif,100,100 213 == huge-1.html?100x32768.gif,100,32768 huge-1.html?100x100.gif,100,32768 214 == huge-1.html?32768x100.gif,100,100 huge-1.html?100x100.gif,100,100 215 == huge-1.html?32768x100.gif,32768,100 huge-1.html?100x100.gif,32768,100 216 == huge-1.html?100x32768.jpg,100,100 huge-1.html?100x100.jpg,100,100 217 == huge-1.html?100x32768.jpg,100,32768 huge-1.html?100x100.jpg,100,32768 218 == huge-1.html?32768x100.jpg,100,100 huge-1.html?100x100.jpg,100,100 219 == huge-1.html?32768x100.jpg,32768,100 huge-1.html?100x100.jpg,32768,100 220 221 # be careful changing fuzzy, the bug this test is testing is if the shade of orange is too dark 222 fuzzy(0-1,0-144) == 1919368-1.html 1919368-1-ref.html 223 224 # Only need to run these with downscaling on 225 != 1421191-1.html about:blank 226 == 1404366-1.html about:blank