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