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