OLD | NEW |
| (Empty) |
1 Stress test glyph-orientation SVG CSS properties | |
2 | |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
4 | |
5 | |
6 | |
7 Strings that fail to parse, and hence parse as "0" for horziontal and "auto" as
vertical. | |
8 | |
9 Test angleValue: ' 0,1' | |
10 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal'))
is 0 | |
11 | |
12 Test angleValue: ' 0,1' | |
13 PASS computedStyle.getPropertyValue('glyph-orientation-vertical') is "auto" | |
14 | |
15 Test angleValue: ' 0,00000.1' | |
16 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal'))
is 0 | |
17 | |
18 Test angleValue: ' 0,00000.1' | |
19 PASS computedStyle.getPropertyValue('glyph-orientation-vertical') is "auto" | |
20 | |
21 Test angleValue: ' 0 1' | |
22 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal'))
is 0 | |
23 | |
24 Test angleValue: ' 0 1' | |
25 PASS computedStyle.getPropertyValue('glyph-orientation-vertical') is "auto" | |
26 | |
27 Test angleValue: '0.1 0.2' | |
28 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal'))
is 0 | |
29 | |
30 Test angleValue: '0.1 0.2' | |
31 PASS computedStyle.getPropertyValue('glyph-orientation-vertical') is "auto" | |
32 | |
33 Test angleValue: ' 270,1' | |
34 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal'))
is 0 | |
35 | |
36 Test angleValue: ' 270,1' | |
37 PASS computedStyle.getPropertyValue('glyph-orientation-vertical') is "auto" | |
38 | |
39 Test angleValue: ' 270,00000.1' | |
40 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal'))
is 0 | |
41 | |
42 Test angleValue: ' 270,00000.1' | |
43 PASS computedStyle.getPropertyValue('glyph-orientation-vertical') is "auto" | |
44 | |
45 Test angleValue: ' 270 1' | |
46 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal'))
is 0 | |
47 | |
48 Test angleValue: ' 270 1' | |
49 PASS computedStyle.getPropertyValue('glyph-orientation-vertical') is "auto" | |
50 | |
51 Test angleValue: '270.1 0.2' | |
52 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal'))
is 0 | |
53 | |
54 Test angleValue: '270.1 0.2' | |
55 PASS computedStyle.getPropertyValue('glyph-orientation-vertical') is "auto" | |
56 | |
57 This tests the rounding of glyph orientation values to the only allowed values 0
, 90, 180, 270. | |
58 | |
59 Test angleValue: '-0.0' | |
60 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal'))
is 0 | |
61 | |
62 Test angleValue: '-0.0' | |
63 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is
0 | |
64 | |
65 Test angleValue: '-10.0' | |
66 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal'))
is 0 | |
67 | |
68 Test angleValue: '-10.0' | |
69 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is
0 | |
70 | |
71 Test angleValue: '-45.0' | |
72 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal'))
is 0 | |
73 | |
74 Test angleValue: '-45.0' | |
75 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is
0 | |
76 | |
77 Test angleValue: '0.0' | |
78 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal'))
is 0 | |
79 | |
80 Test angleValue: '0.0' | |
81 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is
0 | |
82 | |
83 Test angleValue: '10.0' | |
84 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal'))
is 0 | |
85 | |
86 Test angleValue: '10.0' | |
87 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is
0 | |
88 | |
89 Test angleValue: '45.0' | |
90 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal'))
is 0 | |
91 | |
92 Test angleValue: '45.0' | |
93 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is
0 | |
94 | |
95 Test angleValue: '-90.0' | |
96 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal'))
is 90 | |
97 | |
98 Test angleValue: '-90.0' | |
99 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is
90 | |
100 | |
101 Test angleValue: '-100.0' | |
102 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal'))
is 90 | |
103 | |
104 Test angleValue: '-100.0' | |
105 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is
90 | |
106 | |
107 Test angleValue: '-135.0' | |
108 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal'))
is 90 | |
109 | |
110 Test angleValue: '-135.0' | |
111 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is
90 | |
112 | |
113 Test angleValue: '90.0' | |
114 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal'))
is 90 | |
115 | |
116 Test angleValue: '90.0' | |
117 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is
90 | |
118 | |
119 Test angleValue: '100.0' | |
120 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal'))
is 90 | |
121 | |
122 Test angleValue: '100.0' | |
123 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is
90 | |
124 | |
125 Test angleValue: '135.0' | |
126 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal'))
is 90 | |
127 | |
128 Test angleValue: '135.0' | |
129 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is
90 | |
130 | |
131 Test angleValue: '-180.0' | |
132 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal'))
is 180 | |
133 | |
134 Test angleValue: '-180.0' | |
135 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is
180 | |
136 | |
137 Test angleValue: '-190.0' | |
138 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal'))
is 180 | |
139 | |
140 Test angleValue: '-190.0' | |
141 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is
180 | |
142 | |
143 Test angleValue: '-225.0' | |
144 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal'))
is 180 | |
145 | |
146 Test angleValue: '-225.0' | |
147 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is
180 | |
148 | |
149 Test angleValue: '180.0' | |
150 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal'))
is 180 | |
151 | |
152 Test angleValue: '180.0' | |
153 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is
180 | |
154 | |
155 Test angleValue: '190.0' | |
156 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal'))
is 180 | |
157 | |
158 Test angleValue: '190.0' | |
159 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is
180 | |
160 | |
161 Test angleValue: '225.0' | |
162 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal'))
is 180 | |
163 | |
164 Test angleValue: '225.0' | |
165 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is
180 | |
166 | |
167 Test angleValue: '-270.0' | |
168 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal'))
is 270 | |
169 | |
170 Test angleValue: '-270.0' | |
171 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is
270 | |
172 | |
173 Test angleValue: '-280.0' | |
174 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal'))
is 270 | |
175 | |
176 Test angleValue: '-280.0' | |
177 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is
270 | |
178 | |
179 Test angleValue: '-305.0' | |
180 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal'))
is 270 | |
181 | |
182 Test angleValue: '-305.0' | |
183 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is
270 | |
184 | |
185 Test angleValue: '270.0' | |
186 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal'))
is 270 | |
187 | |
188 Test angleValue: '270.0' | |
189 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is
270 | |
190 | |
191 Test angleValue: '280.0' | |
192 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal'))
is 270 | |
193 | |
194 Test angleValue: '280.0' | |
195 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is
270 | |
196 | |
197 Test angleValue: '305.0' | |
198 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal'))
is 270 | |
199 | |
200 Test angleValue: '305.0' | |
201 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is
270 | |
202 | |
203 Tests angles bigger than 360. | |
204 | |
205 Test angleValue: '449.0' | |
206 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal'))
is 90 | |
207 | |
208 Test angleValue: '449.0' | |
209 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is
90 | |
210 | |
211 Test angleValue: '450.0' | |
212 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal'))
is 90 | |
213 | |
214 Test angleValue: '450.0' | |
215 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is
90 | |
216 | |
217 Test angleValue: '451.0' | |
218 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal'))
is 90 | |
219 | |
220 Test angleValue: '451.0' | |
221 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is
90 | |
222 | |
223 Test angleValue: '539.0' | |
224 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal'))
is 180 | |
225 | |
226 Test angleValue: '539.0' | |
227 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is
180 | |
228 | |
229 Test angleValue: '540.0' | |
230 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal'))
is 180 | |
231 | |
232 Test angleValue: '540.0' | |
233 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is
180 | |
234 | |
235 Test angleValue: '541.0' | |
236 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal'))
is 180 | |
237 | |
238 Test angleValue: '541.0' | |
239 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is
180 | |
240 | |
241 Test angleValue: '629.0' | |
242 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal'))
is 270 | |
243 | |
244 Test angleValue: '629.0' | |
245 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is
270 | |
246 | |
247 Test angleValue: '630.0' | |
248 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal'))
is 270 | |
249 | |
250 Test angleValue: '630.0' | |
251 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is
270 | |
252 | |
253 Test angleValue: '631.0' | |
254 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal'))
is 270 | |
255 | |
256 Test angleValue: '631.0' | |
257 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is
270 | |
258 | |
259 Tests whitespace before/after angle value. | |
260 | |
261 Test angleValue: ' .0 ' | |
262 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal'))
is 0 | |
263 | |
264 Test angleValue: ' .0 ' | |
265 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is
0 | |
266 | |
267 Test angleValue: ' 0 ' | |
268 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal'))
is 0 | |
269 | |
270 Test angleValue: ' 0 ' | |
271 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is
0 | |
272 | |
273 Test angleValue: ' 90.0 ' | |
274 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal'))
is 90 | |
275 | |
276 Test angleValue: ' 90.0 ' | |
277 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is
90 | |
278 | |
279 Test angleValue: ' 180.0 ' | |
280 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal'))
is 180 | |
281 | |
282 Test angleValue: ' 180.0 ' | |
283 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is
180 | |
284 | |
285 Test angleValue: ' 270.0 ' | |
286 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal'))
is 270 | |
287 | |
288 Test angleValue: ' 270.0 ' | |
289 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is
270 | |
290 | |
291 Tests rounding of fractional angle values. | |
292 | |
293 Test angleValue: '45.0000' | |
294 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal'))
is 0 | |
295 | |
296 Test angleValue: '45.0000' | |
297 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is
0 | |
298 | |
299 Test angleValue: '45.0001' | |
300 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal'))
is 90 | |
301 | |
302 Test angleValue: '45.0001' | |
303 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is
90 | |
304 | |
305 Test angleValue: '135.000' | |
306 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal'))
is 90 | |
307 | |
308 Test angleValue: '135.000' | |
309 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is
90 | |
310 | |
311 Test angleValue: '135.001' | |
312 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-horizontal'))
is 180 | |
313 | |
314 Test angleValue: '135.001' | |
315 PASS parseFloat(computedStyle.getPropertyValue('glyph-orientation-vertical')) is
180 | |
316 | |
317 PASS successfullyParsed is true | |
318 | |
319 TEST COMPLETE | |
320 | |
OLD | NEW |