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