| OLD | NEW |
| (Empty) |
| 1 // [Name] SVGSVGElement-svgdom-requiredFeatures.js | |
| 2 // [Expected rendering result] a series of PASS messages | |
| 3 | |
| 4 createSVGTestCase(); | |
| 5 | |
| 6 var svgElement = rootSVGElement; | |
| 7 | |
| 8 function repaintTest() { | |
| 9 debug("Check that SVGSVGElement is initially displayed"); | |
| 10 shouldBe("svgElement.getBoundingClientRect().width", "300"); | |
| 11 debug("Check that setting requiredFeatures to something invalid makes it not
render"); | |
| 12 svgElement.requiredFeatures.appendItem("http://www.w3.org/TR/SVG11/feature#B
ogusFeature"); | |
| 13 shouldBe("svgElement.getBoundingClientRect().width", "0"); | |
| 14 debug("Check that setting requiredFeatures to something valid makes it rende
r again"); | |
| 15 svgElement.requiredFeatures.replaceItem("http://www.w3.org/TR/SVG11/feature#
Shape", 0); | |
| 16 shouldBe("svgElement.getBoundingClientRect().width", "300"); | |
| 17 debug("Check that adding something valid to requiredFeatures keeps rendering
the element"); | |
| 18 svgElement.requiredFeatures.appendItem("http://www.w3.org/TR/SVG11/feature#G
radient"); | |
| 19 shouldBe("svgElement.getBoundingClientRect().width", "300"); | |
| 20 debug("Check that adding something invalid to requiredFeatures makes it not
render"); | |
| 21 svgElement.requiredFeatures.appendItem("http://www.w3.org/TR/SVG11/feature#B
ogusFeature"); | |
| 22 shouldBe("svgElement.getBoundingClientRect().width", "0"); | |
| 23 } | |
| 24 | |
| 25 | |
| 26 var successfullyParsed = true; | |
| OLD | NEW |