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