1 Stress test glyph-orientation SVG CSS propertiesOn success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
4 Strings that fail to parse, and hence parse as "0" for horziontal and "auto" as vertical.
6 Test angleValue: ' 0,1'
7 PASS computedStyle.getPropertyCSSValue('glyph-orientation-horizontal').getFloatValue() is 0
9 Test angleValue: ' 0,1'
10 PASS computedStyle.getPropertyValue('glyph-orientation-vertical') is "auto"
12 Test angleValue: ' 0,00000.1'
13 PASS computedStyle.getPropertyCSSValue('glyph-orientation-horizontal').getFloatValue() is 0
15 Test angleValue: ' 0,00000.1'
16 PASS computedStyle.getPropertyValue('glyph-orientation-vertical') is "auto"
18 Test angleValue: ' 0 1'
19 PASS computedStyle.getPropertyCSSValue('glyph-orientation-horizontal').getFloatValue() is 0
21 Test angleValue: ' 0 1'
22 PASS computedStyle.getPropertyValue('glyph-orientation-vertical') is "auto"
24 Test angleValue: '0.1 0.2'
25 PASS computedStyle.getPropertyCSSValue('glyph-orientation-horizontal').getFloatValue() is 0
27 Test angleValue: '0.1 0.2'
28 PASS computedStyle.getPropertyValue('glyph-orientation-vertical') is "auto"
30 Test angleValue: ' 270,1'
31 PASS computedStyle.getPropertyCSSValue('glyph-orientation-horizontal').getFloatValue() is 0
33 Test angleValue: ' 270,1'
34 PASS computedStyle.getPropertyValue('glyph-orientation-vertical') is "auto"
36 Test angleValue: ' 270,00000.1'
37 PASS computedStyle.getPropertyCSSValue('glyph-orientation-horizontal').getFloatValue() is 0
39 Test angleValue: ' 270,00000.1'
40 PASS computedStyle.getPropertyValue('glyph-orientation-vertical') is "auto"
42 Test angleValue: ' 270 1'
43 PASS computedStyle.getPropertyCSSValue('glyph-orientation-horizontal').getFloatValue() is 0
45 Test angleValue: ' 270 1'
46 PASS computedStyle.getPropertyValue('glyph-orientation-vertical') is "auto"
48 Test angleValue: '270.1 0.2'
49 PASS computedStyle.getPropertyCSSValue('glyph-orientation-horizontal').getFloatValue() is 0
51 Test angleValue: '270.1 0.2'
52 PASS computedStyle.getPropertyValue('glyph-orientation-vertical') is "auto"
54 This tests the rounding of glyph orientation values to the only allowed values 0, 90, 180, 270.
56 Test angleValue: '-0.0'
57 PASS computedStyle.getPropertyCSSValue('glyph-orientation-horizontal').getFloatValue() is 0
59 Test angleValue: '-0.0'
60 PASS computedStyle.getPropertyCSSValue('glyph-orientation-vertical').getFloatValue() is 0
62 Test angleValue: '-10.0'
63 PASS computedStyle.getPropertyCSSValue('glyph-orientation-horizontal').getFloatValue() is 0
65 Test angleValue: '-10.0'
66 PASS computedStyle.getPropertyCSSValue('glyph-orientation-vertical').getFloatValue() is 0
68 Test angleValue: '-45.0'
69 PASS computedStyle.getPropertyCSSValue('glyph-orientation-horizontal').getFloatValue() is 0
71 Test angleValue: '-45.0'
72 PASS computedStyle.getPropertyCSSValue('glyph-orientation-vertical').getFloatValue() is 0
74 Test angleValue: '0.0'
75 PASS computedStyle.getPropertyCSSValue('glyph-orientation-horizontal').getFloatValue() is 0
77 Test angleValue: '0.0'
78 PASS computedStyle.getPropertyCSSValue('glyph-orientation-vertical').getFloatValue() is 0
80 Test angleValue: '10.0'
81 PASS computedStyle.getPropertyCSSValue('glyph-orientation-horizontal').getFloatValue() is 0
83 Test angleValue: '10.0'
84 PASS computedStyle.getPropertyCSSValue('glyph-orientation-vertical').getFloatValue() is 0
86 Test angleValue: '45.0'
87 PASS computedStyle.getPropertyCSSValue('glyph-orientation-horizontal').getFloatValue() is 0
89 Test angleValue: '45.0'
90 PASS computedStyle.getPropertyCSSValue('glyph-orientation-vertical').getFloatValue() is 0
92 Test angleValue: '-90.0'
93 PASS computedStyle.getPropertyCSSValue('glyph-orientation-horizontal').getFloatValue() is 90
95 Test angleValue: '-90.0'
96 PASS computedStyle.getPropertyCSSValue('glyph-orientation-vertical').getFloatValue() is 90
98 Test angleValue: '-100.0'
99 PASS computedStyle.getPropertyCSSValue('glyph-orientation-horizontal').getFloatValue() is 90
101 Test angleValue: '-100.0'
102 PASS computedStyle.getPropertyCSSValue('glyph-orientation-vertical').getFloatValue() is 90
104 Test angleValue: '-135.0'
105 PASS computedStyle.getPropertyCSSValue('glyph-orientation-horizontal').getFloatValue() is 90
107 Test angleValue: '-135.0'
108 PASS computedStyle.getPropertyCSSValue('glyph-orientation-vertical').getFloatValue() is 90
110 Test angleValue: '90.0'
111 PASS computedStyle.getPropertyCSSValue('glyph-orientation-horizontal').getFloatValue() is 90
113 Test angleValue: '90.0'
114 PASS computedStyle.getPropertyCSSValue('glyph-orientation-vertical').getFloatValue() is 90
116 Test angleValue: '100.0'
117 PASS computedStyle.getPropertyCSSValue('glyph-orientation-horizontal').getFloatValue() is 90
119 Test angleValue: '100.0'
120 PASS computedStyle.getPropertyCSSValue('glyph-orientation-vertical').getFloatValue() is 90
122 Test angleValue: '135.0'
123 PASS computedStyle.getPropertyCSSValue('glyph-orientation-horizontal').getFloatValue() is 90
125 Test angleValue: '135.0'
126 PASS computedStyle.getPropertyCSSValue('glyph-orientation-vertical').getFloatValue() is 90
128 Test angleValue: '-180.0'
129 PASS computedStyle.getPropertyCSSValue('glyph-orientation-horizontal').getFloatValue() is 180
131 Test angleValue: '-180.0'
132 PASS computedStyle.getPropertyCSSValue('glyph-orientation-vertical').getFloatValue() is 180
134 Test angleValue: '-190.0'
135 PASS computedStyle.getPropertyCSSValue('glyph-orientation-horizontal').getFloatValue() is 180
137 Test angleValue: '-190.0'
138 PASS computedStyle.getPropertyCSSValue('glyph-orientation-vertical').getFloatValue() is 180
140 Test angleValue: '-225.0'
141 PASS computedStyle.getPropertyCSSValue('glyph-orientation-horizontal').getFloatValue() is 180
143 Test angleValue: '-225.0'
144 PASS computedStyle.getPropertyCSSValue('glyph-orientation-vertical').getFloatValue() is 180
146 Test angleValue: '180.0'
147 PASS computedStyle.getPropertyCSSValue('glyph-orientation-horizontal').getFloatValue() is 180
149 Test angleValue: '180.0'
150 PASS computedStyle.getPropertyCSSValue('glyph-orientation-vertical').getFloatValue() is 180
152 Test angleValue: '190.0'
153 PASS computedStyle.getPropertyCSSValue('glyph-orientation-horizontal').getFloatValue() is 180
155 Test angleValue: '190.0'
156 PASS computedStyle.getPropertyCSSValue('glyph-orientation-vertical').getFloatValue() is 180
158 Test angleValue: '225.0'
159 PASS computedStyle.getPropertyCSSValue('glyph-orientation-horizontal').getFloatValue() is 180
161 Test angleValue: '225.0'
162 PASS computedStyle.getPropertyCSSValue('glyph-orientation-vertical').getFloatValue() is 180
164 Test angleValue: '-270.0'
165 PASS computedStyle.getPropertyCSSValue('glyph-orientation-horizontal').getFloatValue() is 270
167 Test angleValue: '-270.0'
168 PASS computedStyle.getPropertyCSSValue('glyph-orientation-vertical').getFloatValue() is 270
170 Test angleValue: '-280.0'
171 PASS computedStyle.getPropertyCSSValue('glyph-orientation-horizontal').getFloatValue() is 270
173 Test angleValue: '-280.0'
174 PASS computedStyle.getPropertyCSSValue('glyph-orientation-vertical').getFloatValue() is 270
176 Test angleValue: '-305.0'
177 PASS computedStyle.getPropertyCSSValue('glyph-orientation-horizontal').getFloatValue() is 270
179 Test angleValue: '-305.0'
180 PASS computedStyle.getPropertyCSSValue('glyph-orientation-vertical').getFloatValue() is 270
182 Test angleValue: '270.0'
183 PASS computedStyle.getPropertyCSSValue('glyph-orientation-horizontal').getFloatValue() is 270
185 Test angleValue: '270.0'
186 PASS computedStyle.getPropertyCSSValue('glyph-orientation-vertical').getFloatValue() is 270
188 Test angleValue: '280.0'
189 PASS computedStyle.getPropertyCSSValue('glyph-orientation-horizontal').getFloatValue() is 270
191 Test angleValue: '280.0'
192 PASS computedStyle.getPropertyCSSValue('glyph-orientation-vertical').getFloatValue() is 270
194 Test angleValue: '305.0'
195 PASS computedStyle.getPropertyCSSValue('glyph-orientation-horizontal').getFloatValue() is 270
197 Test angleValue: '305.0'
198 PASS computedStyle.getPropertyCSSValue('glyph-orientation-vertical').getFloatValue() is 270
200 Tests angles bigger than 360.
202 Test angleValue: '449.0'
203 PASS computedStyle.getPropertyCSSValue('glyph-orientation-horizontal').getFloatValue() is 90
205 Test angleValue: '449.0'
206 PASS computedStyle.getPropertyCSSValue('glyph-orientation-vertical').getFloatValue() is 90
208 Test angleValue: '450.0'
209 PASS computedStyle.getPropertyCSSValue('glyph-orientation-horizontal').getFloatValue() is 90
211 Test angleValue: '450.0'
212 PASS computedStyle.getPropertyCSSValue('glyph-orientation-vertical').getFloatValue() is 90
214 Test angleValue: '451.0'
215 PASS computedStyle.getPropertyCSSValue('glyph-orientation-horizontal').getFloatValue() is 90
217 Test angleValue: '451.0'
218 PASS computedStyle.getPropertyCSSValue('glyph-orientation-vertical').getFloatValue() is 90
220 Test angleValue: '539.0'
221 PASS computedStyle.getPropertyCSSValue('glyph-orientation-horizontal').getFloatValue() is 180
223 Test angleValue: '539.0'
224 PASS computedStyle.getPropertyCSSValue('glyph-orientation-vertical').getFloatValue() is 180
226 Test angleValue: '540.0'
227 PASS computedStyle.getPropertyCSSValue('glyph-orientation-horizontal').getFloatValue() is 180
229 Test angleValue: '540.0'
230 PASS computedStyle.getPropertyCSSValue('glyph-orientation-vertical').getFloatValue() is 180
232 Test angleValue: '541.0'
233 PASS computedStyle.getPropertyCSSValue('glyph-orientation-horizontal').getFloatValue() is 180
235 Test angleValue: '541.0'
236 PASS computedStyle.getPropertyCSSValue('glyph-orientation-vertical').getFloatValue() is 180
238 Test angleValue: '629.0'
239 PASS computedStyle.getPropertyCSSValue('glyph-orientation-horizontal').getFloatValue() is 270
241 Test angleValue: '629.0'
242 PASS computedStyle.getPropertyCSSValue('glyph-orientation-vertical').getFloatValue() is 270
244 Test angleValue: '630.0'
245 PASS computedStyle.getPropertyCSSValue('glyph-orientation-horizontal').getFloatValue() is 270
247 Test angleValue: '630.0'
248 PASS computedStyle.getPropertyCSSValue('glyph-orientation-vertical').getFloatValue() is 270
250 Test angleValue: '631.0'
251 PASS computedStyle.getPropertyCSSValue('glyph-orientation-horizontal').getFloatValue() is 270
253 Test angleValue: '631.0'
254 PASS computedStyle.getPropertyCSSValue('glyph-orientation-vertical').getFloatValue() is 270
256 Tests whitespace before/after angle value.
258 Test angleValue: ' .0 '
259 PASS computedStyle.getPropertyCSSValue('glyph-orientation-horizontal').getFloatValue() is 0
261 Test angleValue: ' .0 '
262 PASS computedStyle.getPropertyCSSValue('glyph-orientation-vertical').getFloatValue() is 0
264 Test angleValue: ' 0 '
265 PASS computedStyle.getPropertyCSSValue('glyph-orientation-horizontal').getFloatValue() is 0
267 Test angleValue: ' 0 '
268 PASS computedStyle.getPropertyCSSValue('glyph-orientation-vertical').getFloatValue() is 0
270 Test angleValue: ' 90.0 '
271 PASS computedStyle.getPropertyCSSValue('glyph-orientation-horizontal').getFloatValue() is 90
273 Test angleValue: ' 90.0 '
274 PASS computedStyle.getPropertyCSSValue('glyph-orientation-vertical').getFloatValue() is 90
276 Test angleValue: ' 180.0 '
277 PASS computedStyle.getPropertyCSSValue('glyph-orientation-horizontal').getFloatValue() is 180
279 Test angleValue: ' 180.0 '
280 PASS computedStyle.getPropertyCSSValue('glyph-orientation-vertical').getFloatValue() is 180
282 Test angleValue: ' 270.0 '
283 PASS computedStyle.getPropertyCSSValue('glyph-orientation-horizontal').getFloatValue() is 270
285 Test angleValue: ' 270.0 '
286 PASS computedStyle.getPropertyCSSValue('glyph-orientation-vertical').getFloatValue() is 270
288 Tests rounding of fractional angle values.
290 Test angleValue: '45.0000'
291 PASS computedStyle.getPropertyCSSValue('glyph-orientation-horizontal').getFloatValue() is 0
293 Test angleValue: '45.0000'
294 PASS computedStyle.getPropertyCSSValue('glyph-orientation-vertical').getFloatValue() is 0
296 Test angleValue: '45.0001'
297 PASS computedStyle.getPropertyCSSValue('glyph-orientation-horizontal').getFloatValue() is 90
299 Test angleValue: '45.0001'
300 PASS computedStyle.getPropertyCSSValue('glyph-orientation-vertical').getFloatValue() is 90
302 Test angleValue: '135.000'
303 PASS computedStyle.getPropertyCSSValue('glyph-orientation-horizontal').getFloatValue() is 90
305 Test angleValue: '135.000'
306 PASS computedStyle.getPropertyCSSValue('glyph-orientation-vertical').getFloatValue() is 90
308 Test angleValue: '135.001'
309 PASS computedStyle.getPropertyCSSValue('glyph-orientation-horizontal').getFloatValue() is 180
311 Test angleValue: '135.001'
312 PASS computedStyle.getPropertyCSSValue('glyph-orientation-vertical').getFloatValue() is 180
314 PASS successfullyParsed is true