OLD | NEW |
| (Empty) |
1 This test checks the SVGNumber API | |
2 | |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
4 | |
5 | |
6 | |
7 Check initial number value | |
8 PASS num.value is 0 | |
9 | |
10 Check assigning number | |
11 PASS num.value = 100 is 100 | |
12 PASS num.value = -100 is -100 | |
13 PASS num.value = 12345678 is 12345678 | |
14 PASS num.value = -num.value is -12345678 | |
15 | |
16 Check that numbers are static, caching value in a local variable and modifying i
t, should have no effect | |
17 PASS numRef is 1000 | |
18 PASS num.value is -12345678 | |
19 | |
20 Check assigning invalid number, number should be 0 afterwards | |
21 PASS num.value = 0 is 0 | |
22 PASS num.value = num threw exception TypeError: Failed to set the 'value' proper
ty on 'SVGNumber': The provided float value is non-finite.. | |
23 PASS num.value = 'aString' threw exception TypeError: Failed to set the 'value'
property on 'SVGNumber': The provided float value is non-finite.. | |
24 PASS num.value = svgElement threw exception TypeError: Failed to set the 'value'
property on 'SVGNumber': The provided float value is non-finite.. | |
25 PASS num.value = NaN threw exception TypeError: Failed to set the 'value' proper
ty on 'SVGNumber': The provided float value is non-finite.. | |
26 PASS num.value = Infinity threw exception TypeError: Failed to set the 'value' p
roperty on 'SVGNumber': The provided float value is non-finite.. | |
27 PASS num.value is 0 | |
28 PASS num.value = null is null | |
29 | |
30 Check that the number is now null | |
31 PASS num.value is 0 | |
32 PASS successfullyParsed is true | |
33 | |
34 TEST COMPLETE | |
35 | |
OLD | NEW |