OLD | NEW |
| (Empty) |
1 This test checks the SVGAnimatedLengthList API - utilizing the dx property of SV
GTextElement | |
2 | |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
4 | |
5 | |
6 | |
7 Check initial dx value | |
8 PASS textElement.dx.toString() is "[object SVGAnimatedLengthList]" | |
9 PASS textElement.dx.baseVal.toString() is "[object SVGLengthList]" | |
10 PASS textElement.dx.baseVal.getItem(0).value is 50 | |
11 | |
12 Check that length lists are dynamic, caching value in a local variable and modif
ying it, should take effect | |
13 PASS numRef.getItem(0).value is 100 | |
14 PASS textElement.dx.baseVal.getItem(0).value is 100 | |
15 | |
16 Check that assigning to baseVal has no effect, as no setter is defined | |
17 PASS textElement.dx.baseVal = -1 is -1 | |
18 PASS textElement.dx.baseVal = 'aString' is "aString" | |
19 PASS textElement.dx.baseVal = textElement is textElement | |
20 | |
21 Check that the dx value remained 100, and the baseVal type has not been changed | |
22 PASS textElement.dx.baseVal.toString() is "[object SVGLengthList]" | |
23 PASS textElement.dx.baseVal.getItem(0).value is 100 | |
24 PASS successfullyParsed is true | |
25 | |
26 TEST COMPLETE | |
27 | |
OLD | NEW |