summaryrefslogtreecommitdiffstats
path: root/image/test/reftest/downscaling/reftest-stylo.list
blob: 6feb9080bfc38bcf2f26b67eeeea049405384619 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
# DO NOT EDIT! This is a auto-generated temporary list for Stylo testing
# Reftests for downscaling
#
# Downscaling can be a lossy process, so a bit of mismatch is acceptable here,
# as long as it's barely noticable visually. When necessary, this can be
# explicitly allowed via 'fuzzy'/'fuzzy-if' annotations.
#
# Many of these tests check primarily that we don't lose rows or columns of
# pixels when downscaling by making sure that the result isn't too similar to
# about:blank. A small amount of fuzziness is used to ensure that the tests
# don't pass because of very slight deviations; passing tests should be
# substantially different from about:blank. This fuzziness should *not* be
# removed as doing so would make the tests pass in situations where they
# shouldn't.
#
# IMPORTANT: For robustness, each test should be listed *twice* in this
# manifest -- once with the high quality downscaling pref disabled, and once
# with this pref enabled. The pref is set via "default-preferences", so
# simply appending a new test to the lists below each of those lines should be
# sufficient.
#
# Also note that Mac OS X has its own system-level downscaling algorithm, so
# tests here may need Mac-specific "fuzzy-if(cocoaWidget,...)" annotations.
# Similarly, modern versions of Windows have slightly different downscaling
# behavior than other platforms, and may require "fuzzy-if(winWidget,...)".


# RUN TESTS NOT AFFECTED BY DOWNSCALE-DURING-DECODE:
# #
fails fuzzy-if(skiaContent,14,416) == downscale-svg-1a.html downscale-svg-1a.html
== downscale-svg-1b.html downscale-svg-1b.html
fails fuzzy-if(skiaContent,8,292) == downscale-svg-1c.html downscale-svg-1c.html
fuzzy-if(B2G,255,207) == downscale-svg-1d.html downscale-svg-1d.html
# right side is 1 pixel off for B2G, probably regression from 974242
fails fuzzy-if(skiaContent,110,181) == downscale-svg-1e.html downscale-svg-1e.html
fails fuzzy-if(skiaContent,142,77) == downscale-svg-1f.html downscale-svg-1f.html

# RUN TESTS WITH DOWNSCALE-DURING-DECODE DISABLED:
# #
default-preferences pref(image.downscale-during-decode.enabled,false)

fuzzy-if(winWidget,16,20) fuzzy-if(cocoaWidget,106,31) == downscale-1.html downscale-1.html

== downscale-2a.html?203,52,left downscale-2a.html?203,52,left
== downscale-2b.html?203,52,left downscale-2b.html?203,52,left
skip == downscale-2c.html?203,52,left downscale-2c.html?203,52,left
== downscale-2d.html?203,52,left downscale-2d.html?203,52,left
== downscale-2e.html?203,52,left downscale-2e.html?203,52,left

== downscale-2a.html?205,53,left downscale-2a.html?205,53,left
== downscale-2b.html?205,53,left downscale-2b.html?205,53,left
== downscale-2c.html?205,53,left downscale-2c.html?205,53,left
skip == downscale-2d.html?205,53,left downscale-2d.html?205,53,left
== downscale-2e.html?205,53,left downscale-2e.html?205,53,left

== downscale-2a.html?203,52,right downscale-2a.html?203,52,right
== downscale-2b.html?203,52,right downscale-2b.html?203,52,right
== downscale-2c.html?203,52,right downscale-2c.html?203,52,right
== downscale-2d.html?203,52,right downscale-2d.html?203,52,right
== downscale-2e.html?203,52,right downscale-2e.html?203,52,right

== downscale-2a.html?205,53,right downscale-2a.html?205,53,right
== downscale-2b.html?205,53,right downscale-2b.html?205,53,right
== downscale-2c.html?205,53,right downscale-2c.html?205,53,right
== downscale-2d.html?205,53,right downscale-2d.html?205,53,right
== downscale-2e.html?205,53,right downscale-2e.html?205,53,right

== downscale-2a.html?203,52,top downscale-2a.html?203,52,top
== downscale-2b.html?203,52,top downscale-2b.html?203,52,top
== downscale-2c.html?203,52,top downscale-2c.html?203,52,top
skip == downscale-2d.html?203,52,top downscale-2d.html?203,52,top
== downscale-2e.html?203,52,top downscale-2e.html?203,52,top

== downscale-2a.html?205,53,top downscale-2a.html?205,53,top
== downscale-2b.html?205,53,top downscale-2b.html?205,53,top
== downscale-2c.html?205,53,top downscale-2c.html?205,53,top
== downscale-2d.html?205,53,top downscale-2d.html?205,53,top
== downscale-2e.html?205,53,top downscale-2e.html?205,53,top

== downscale-2a.html?203,52,bottom downscale-2a.html?203,52,bottom
== downscale-2b.html?203,52,bottom downscale-2b.html?203,52,bottom
== downscale-2c.html?203,52,bottom downscale-2c.html?203,52,bottom
== downscale-2d.html?203,52,bottom downscale-2d.html?203,52,bottom
skip == downscale-2e.html?203,52,bottom downscale-2e.html?203,52,bottom

== downscale-2a.html?205,53,bottom downscale-2a.html?205,53,bottom
== downscale-2b.html?205,53,bottom downscale-2b.html?205,53,bottom
== downscale-2c.html?205,53,bottom downscale-2c.html?205,53,bottom
== downscale-2d.html?205,53,bottom downscale-2d.html?205,53,bottom
fails-if(OSX>=1008&&!skiaContent) == downscale-2e.html?205,53,bottom downscale-2e.html?205,53,bottom

== downscale-moz-icon-1.html downscale-moz-icon-1.html

== downscale-png.html?16,16,interlaced downscale-png.html?16,16,interlaced
== downscale-png.html?24,24,interlaced downscale-png.html?24,24,interlaced

# Non-transparent and transparent ICO images
random == downscale-16px.html?ff-0RGB.ico downscale-16px.html?ff-0RGB.ico
random == downscale-16px.html?ff-ARGB.ico downscale-16px.html?ff-ARGB.ico

# Upside-down (negative height) BMP
random == downscale-8px.html?top-to-bottom-16x16-24bpp.bmp downscale-8px.html?top-to-bottom-16x16-24bpp.bmp

# Test downscaling from all supported formats from 256 to 32.
== downscale-32px.html?.bmp downscale-32px.html?.bmp
== downscale-32px.html?.gif downscale-32px.html?.gif
== downscale-32px.html?.jpg downscale-32px.html?.jpg
== downscale-32px.html?.png downscale-32px.html?.png
== downscale-32px.html?.svg downscale-32px.html?.svg
== downscale-32px.html?-bmp-in.ico downscale-32px.html?-bmp-in.ico
== downscale-32px.html?-png-in.ico downscale-32px.html?-png-in.ico

# RUN TESTS WITH DOWNSCALE-DURING-DECODE ENABLED:
# #
default-preferences pref(image.downscale-during-decode.enabled,true)

fuzzy-if(d2d,31,147) == downscale-1.html downscale-1.html
# intermittently 147 pixels on win7 accelerated only (not win8)

== downscale-2a.html?203,52,left downscale-2a.html?203,52,left
== downscale-2b.html?203,52,left downscale-2b.html?203,52,left
skip == downscale-2c.html?203,52,left downscale-2c.html?203,52,left
== downscale-2d.html?203,52,left downscale-2d.html?203,52,left
== downscale-2e.html?203,52,left downscale-2e.html?203,52,left
== downscale-2f.html?203,52,left downscale-2f.html?203,52,left

== downscale-2a.html?205,53,left downscale-2a.html?205,53,left
== downscale-2b.html?205,53,left downscale-2b.html?205,53,left
== downscale-2c.html?205,53,left downscale-2c.html?205,53,left
skip == downscale-2d.html?205,53,left downscale-2d.html?205,53,left
== downscale-2e.html?205,53,left downscale-2e.html?205,53,left
== downscale-2f.html?205,53,left downscale-2f.html?205,53,left

== downscale-2a.html?203,52,right downscale-2a.html?203,52,right
== downscale-2b.html?203,52,right downscale-2b.html?203,52,right
== downscale-2c.html?203,52,right downscale-2c.html?203,52,right
== downscale-2d.html?203,52,right downscale-2d.html?203,52,right
== downscale-2e.html?203,52,right downscale-2e.html?203,52,right
== downscale-2f.html?203,52,right downscale-2f.html?203,52,right

== downscale-2a.html?205,53,right downscale-2a.html?205,53,right
== downscale-2b.html?205,53,right downscale-2b.html?205,53,right
== downscale-2c.html?205,53,right downscale-2c.html?205,53,right
== downscale-2d.html?205,53,right downscale-2d.html?205,53,right
== downscale-2e.html?205,53,right downscale-2e.html?205,53,right
== downscale-2f.html?205,53,right downscale-2f.html?205,53,right

== downscale-2a.html?203,52,top downscale-2a.html?203,52,top
== downscale-2b.html?203,52,top downscale-2b.html?203,52,top
== downscale-2c.html?203,52,top downscale-2c.html?203,52,top
skip == downscale-2d.html?203,52,top downscale-2d.html?203,52,top
== downscale-2e.html?203,52,top downscale-2e.html?203,52,top
== downscale-2f.html?203,52,top downscale-2f.html?203,52,top

== downscale-2a.html?205,53,top downscale-2a.html?205,53,top
== downscale-2b.html?205,53,top downscale-2b.html?205,53,top
== downscale-2c.html?205,53,top downscale-2c.html?205,53,top
== downscale-2d.html?205,53,top downscale-2d.html?205,53,top
== downscale-2e.html?205,53,top downscale-2e.html?205,53,top
== downscale-2f.html?205,53,top downscale-2f.html?205,53,top

== downscale-2a.html?203,52,bottom downscale-2a.html?203,52,bottom
== downscale-2b.html?203,52,bottom downscale-2b.html?203,52,bottom
== downscale-2c.html?203,52,bottom downscale-2c.html?203,52,bottom
== downscale-2d.html?203,52,bottom downscale-2d.html?203,52,bottom
skip == downscale-2e.html?203,52,bottom downscale-2e.html?203,52,bottom
== downscale-2f.html?203,52,bottom downscale-2f.html?203,52,bottom

== downscale-2a.html?205,53,bottom downscale-2a.html?205,53,bottom
== downscale-2b.html?205,53,bottom downscale-2b.html?205,53,bottom
== downscale-2c.html?205,53,bottom downscale-2c.html?205,53,bottom
== downscale-2d.html?205,53,bottom downscale-2d.html?205,53,bottom
== downscale-2e.html?205,53,bottom downscale-2e.html?205,53,bottom
== downscale-2f.html?205,53,bottom downscale-2f.html?205,53,bottom

== downscale-moz-icon-1.html downscale-moz-icon-1.html

== downscale-png.html?16,16,interlaced downscale-png.html?16,16,interlaced
== downscale-png.html?24,24,interlaced downscale-png.html?24,24,interlaced

# Non-transparent and transparent ICO images
random == downscale-16px.html?ff-0RGB.ico downscale-16px.html?ff-0RGB.ico
random == downscale-16px.html?ff-ARGB.ico downscale-16px.html?ff-ARGB.ico

# Upside-down (negative height) BMP
random == downscale-8px.html?top-to-bottom-16x16-24bpp.bmp downscale-8px.html?top-to-bottom-16x16-24bpp.bmp

# Test downscaling from all supported formats from 256 to 32.
== downscale-32px.html?.bmp downscale-32px.html?.bmp
== downscale-32px.html?.gif downscale-32px.html?.gif
== downscale-32px.html?.jpg downscale-32px.html?.jpg
== downscale-32px.html?.png downscale-32px.html?.png
== downscale-32px.html?.svg downscale-32px.html?.svg
== downscale-32px.html?-bmp-in.ico downscale-32px.html?-bmp-in.ico
== downscale-32px.html?-png-in.ico downscale-32px.html?-png-in.ico