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