reftest.list 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  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 noticable 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 "default-preferences", 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. # RUN TESTS NOT AFFECTED BY DOWNSCALE-DURING-DECODE:
  26. # ==================================================
  27. fuzzy-if(skiaContent,14,416) == downscale-svg-1a.html downscale-svg-1-ref.html?80
  28. fuzzy(80,468) == downscale-svg-1b.html downscale-svg-1-ref.html?72
  29. fuzzy-if(skiaContent,8,292) == downscale-svg-1c.html downscale-svg-1-ref.html?64
  30. fuzzy(17,208) == downscale-svg-1d.html downscale-svg-1-ref.html?53
  31. fuzzy(78,216) fuzzy-if(skiaContent,110,181) == downscale-svg-1e.html downscale-svg-1-ref.html?40
  32. fuzzy(51,90) fuzzy-if(skiaContent,142,77) == downscale-svg-1f.html downscale-svg-1-ref.html?24
  33. # RUN TESTS WITH DOWNSCALE-DURING-DECODE DISABLED:
  34. # ================================================
  35. default-preferences pref(image.downscale-during-decode.enabled,false)
  36. fuzzy-if(winWidget,16,20) fuzzy-if(cocoaWidget,106,31) == downscale-1.html downscale-1-ref.html
  37. fuzzy(20,999) != downscale-2a.html?203,52,left about:blank
  38. fuzzy(20,999) != downscale-2b.html?203,52,left about:blank
  39. fuzzy(20,999) != downscale-2c.html?203,52,left about:blank
  40. fuzzy(20,999) != downscale-2d.html?203,52,left about:blank
  41. fuzzy(20,999) != downscale-2e.html?203,52,left about:blank
  42. fuzzy(20,999) != downscale-2a.html?205,53,left about:blank
  43. fuzzy(20,999) != downscale-2b.html?205,53,left about:blank
  44. fuzzy(20,999) != downscale-2c.html?205,53,left about:blank
  45. fuzzy(20,999) != downscale-2d.html?205,53,left about:blank
  46. fuzzy(20,999) != downscale-2e.html?205,53,left about:blank
  47. fuzzy(20,999) != downscale-2a.html?203,52,right about:blank
  48. fuzzy(20,999) != downscale-2b.html?203,52,right about:blank
  49. fuzzy(20,999) != downscale-2c.html?203,52,right about:blank
  50. fuzzy(20,999) != downscale-2d.html?203,52,right about:blank
  51. fuzzy(20,999) != downscale-2e.html?203,52,right about:blank
  52. fuzzy(20,999) != downscale-2a.html?205,53,right about:blank
  53. fuzzy(20,999) != downscale-2b.html?205,53,right about:blank
  54. fuzzy(20,999) != downscale-2c.html?205,53,right about:blank
  55. fuzzy(20,999) != downscale-2d.html?205,53,right about:blank
  56. fuzzy(20,999) != downscale-2e.html?205,53,right about:blank
  57. fuzzy(20,999) != downscale-2a.html?203,52,top about:blank
  58. fuzzy(20,999) != downscale-2b.html?203,52,top about:blank
  59. fuzzy(20,999) != downscale-2c.html?203,52,top about:blank
  60. fuzzy(20,999) != downscale-2d.html?203,52,top about:blank
  61. fuzzy(20,999) != downscale-2e.html?203,52,top about:blank
  62. fuzzy(20,999) != downscale-2a.html?205,53,top about:blank
  63. fuzzy(20,999) != downscale-2b.html?205,53,top about:blank
  64. fuzzy(20,999) != downscale-2c.html?205,53,top about:blank
  65. fuzzy(20,999) != downscale-2d.html?205,53,top about:blank
  66. fuzzy(20,999) != downscale-2e.html?205,53,top about:blank
  67. fuzzy(20,999) != downscale-2a.html?203,52,bottom about:blank
  68. fuzzy(20,999) != downscale-2b.html?203,52,bottom about:blank
  69. fuzzy(20,999) != downscale-2c.html?203,52,bottom about:blank
  70. fuzzy(20,999) != downscale-2d.html?203,52,bottom about:blank
  71. fuzzy(20,999) != downscale-2e.html?203,52,bottom about:blank
  72. fuzzy(20,999) != downscale-2a.html?205,53,bottom about:blank
  73. fuzzy(20,999) != downscale-2b.html?205,53,bottom about:blank
  74. fuzzy(20,999) != downscale-2c.html?205,53,bottom about:blank
  75. fuzzy(20,999) != downscale-2d.html?205,53,bottom about:blank
  76. fuzzy(20,999) fails-if(OSX>=1008&&!skiaContent) != downscale-2e.html?205,53,bottom about:blank
  77. fuzzy(63,3391) == downscale-moz-icon-1.html downscale-moz-icon-1-ref.html
  78. == downscale-png.html?16,16,interlaced downscale-png.html?16,16,normal
  79. == downscale-png.html?24,24,interlaced downscale-png.html?24,24,normal
  80. # Non-transparent and transparent ICO images
  81. == downscale-16px.html?ff-0RGB.ico downscale-16px.html?ff-0RGB.png
  82. fuzzy(1,1) == downscale-16px.html?ff-ARGB.ico downscale-16px.html?ff-ARGB.png
  83. # Upside-down (negative height) BMP
  84. == downscale-8px.html?top-to-bottom-16x16-24bpp.bmp downscale-8px.html?bmp-size-16x16-24bpp.png
  85. # Test downscaling from all supported formats from 256 to 32.
  86. == downscale-32px.html?.bmp downscale-32px-ref.html
  87. == downscale-32px.html?.gif downscale-32px-ref.html
  88. fuzzy(1,1024) == downscale-32px.html?.jpg downscale-32px-ref.html
  89. == downscale-32px.html?.png downscale-32px-ref.html
  90. == downscale-32px.html?.svg downscale-32px-ref.html
  91. == downscale-32px.html?-bmp-in.ico downscale-32px-ref.html
  92. == downscale-32px.html?-png-in.ico downscale-32px-ref.html
  93. # RUN TESTS WITH DOWNSCALE-DURING-DECODE ENABLED:
  94. # ===============================================
  95. default-preferences pref(image.downscale-during-decode.enabled,true)
  96. fuzzy(31,127) fuzzy-if(d2d,31,147) == downscale-1.html downscale-1-ref.html # intermittently 147 pixels on win7 accelerated only (not win8)
  97. fuzzy(20,999) != downscale-2a.html?203,52,left about:blank
  98. fuzzy(20,999) != downscale-2b.html?203,52,left about:blank
  99. fuzzy(20,999) != downscale-2c.html?203,52,left about:blank
  100. fuzzy(20,999) != downscale-2d.html?203,52,left about:blank
  101. fuzzy(20,999) != downscale-2e.html?203,52,left about:blank
  102. fuzzy(20,999) != downscale-2f.html?203,52,left about:blank
  103. fuzzy(20,999) != downscale-2a.html?205,53,left about:blank
  104. fuzzy(20,999) != downscale-2b.html?205,53,left about:blank
  105. fuzzy(20,999) != downscale-2c.html?205,53,left about:blank
  106. fuzzy(20,999) != downscale-2d.html?205,53,left about:blank
  107. fuzzy(20,999) != downscale-2e.html?205,53,left about:blank
  108. fuzzy(20,999) != downscale-2f.html?205,53,left about:blank
  109. fuzzy(20,999) != downscale-2a.html?203,52,right about:blank
  110. fuzzy(20,999) != downscale-2b.html?203,52,right about:blank
  111. fuzzy(20,999) != downscale-2c.html?203,52,right about:blank
  112. fuzzy(20,999) != downscale-2d.html?203,52,right about:blank
  113. fuzzy(20,999) != downscale-2e.html?203,52,right about:blank
  114. fuzzy(20,999) != downscale-2f.html?203,52,right about:blank
  115. fuzzy(20,999) != downscale-2a.html?205,53,right about:blank
  116. fuzzy(20,999) != downscale-2b.html?205,53,right about:blank
  117. fuzzy(20,999) != downscale-2c.html?205,53,right about:blank
  118. fuzzy(20,999) != downscale-2d.html?205,53,right about:blank
  119. fuzzy(20,999) != downscale-2e.html?205,53,right about:blank
  120. fuzzy(20,999) != downscale-2f.html?205,53,right about:blank
  121. fuzzy(20,999) != downscale-2a.html?203,52,top about:blank
  122. fuzzy(20,999) != downscale-2b.html?203,52,top about:blank
  123. fuzzy(20,999) != downscale-2c.html?203,52,top about:blank
  124. fuzzy(20,999) != downscale-2d.html?203,52,top about:blank
  125. fuzzy(20,999) != downscale-2e.html?203,52,top about:blank
  126. fuzzy(20,999) != downscale-2f.html?203,52,top about:blank
  127. fuzzy(20,999) != downscale-2a.html?205,53,top about:blank
  128. fuzzy(20,999) != downscale-2b.html?205,53,top about:blank
  129. fuzzy(20,999) != downscale-2c.html?205,53,top about:blank
  130. fuzzy(20,999) != downscale-2d.html?205,53,top about:blank
  131. fuzzy(20,999) != downscale-2e.html?205,53,top about:blank
  132. fuzzy(20,999) != downscale-2f.html?205,53,top about:blank
  133. fuzzy(20,999) != downscale-2a.html?203,52,bottom about:blank
  134. fuzzy(20,999) != downscale-2b.html?203,52,bottom about:blank
  135. fuzzy(20,999) != downscale-2c.html?203,52,bottom about:blank
  136. fuzzy(20,999) != downscale-2d.html?203,52,bottom about:blank
  137. fuzzy(20,999) != downscale-2e.html?203,52,bottom about:blank
  138. fuzzy(20,999) != downscale-2f.html?203,52,bottom about:blank
  139. fuzzy(20,999) != downscale-2a.html?205,53,bottom about:blank
  140. fuzzy(20,999) != downscale-2b.html?205,53,bottom about:blank
  141. fuzzy(20,999) != downscale-2c.html?205,53,bottom about:blank
  142. fuzzy(20,999) != downscale-2d.html?205,53,bottom about:blank
  143. fuzzy(20,999) != downscale-2e.html?205,53,bottom about:blank
  144. fuzzy(20,999) != downscale-2f.html?205,53,bottom about:blank
  145. # Skip on WinXP with skia content
  146. fuzzy(71,4439) fails-if(/^Windows\x20NT\x205\.1/.test(http.oscpu)) == downscale-moz-icon-1.html downscale-moz-icon-1-ref.html
  147. == downscale-png.html?16,16,interlaced downscale-png.html?16,16,normal
  148. == downscale-png.html?24,24,interlaced downscale-png.html?24,24,normal
  149. # Non-transparent and transparent ICO images
  150. fuzzy(1,3) == downscale-16px.html?ff-0RGB.ico downscale-16px.html?ff-0RGB.png
  151. fuzzy(3,32) == downscale-16px.html?ff-ARGB.ico downscale-16px.html?ff-ARGB.png
  152. # Upside-down (negative height) BMP
  153. == downscale-8px.html?top-to-bottom-16x16-24bpp.bmp downscale-8px.html?bmp-size-16x16-24bpp.png
  154. # Test downscaling from all supported formats from 256 to 32.
  155. fuzzy(18,128) == downscale-32px.html?.bmp downscale-32px-ref.html
  156. fuzzy(18,128) == downscale-32px.html?.gif downscale-32px-ref.html
  157. fuzzy(19,992) == downscale-32px.html?.jpg downscale-32px-ref.html
  158. fuzzy(18,128) == downscale-32px.html?.png downscale-32px-ref.html
  159. == downscale-32px.html?.svg downscale-32px-ref.html
  160. fuzzy(18,128) == downscale-32px.html?-bmp-in.ico downscale-32px-ref.html
  161. fuzzy(18,128) == downscale-32px.html?-png-in.ico downscale-32px-ref.html