| OLD | NEW |
| (Empty) |
| 1 // [Name] SVGCursorElement-dom-y-attr.js | |
| 2 // [Expected rendering result] cursor image should hang from the upper-left corn
er of the cursor after clicking - and a series of PASS mesasges | |
| 3 | |
| 4 description("Tests dynamic updates of the 'y' attribute of the SVGCursorElement
object") | |
| 5 createSVGTestCase(); | |
| 6 | |
| 7 var cursorElement = createSVGElement("cursor"); | |
| 8 cursorElement.setAttribute("id", "cursor"); | |
| 9 cursorElement.setAttribute("y", "100"); | |
| 10 cursorElement.setAttributeNS(xlinkNS, "xlink:href", "../W3C-SVG-1.1/resources/sp
here.png"); | |
| 11 rootSVGElement.appendChild(cursorElement); | |
| 12 | |
| 13 var rectElement = createSVGElement("rect"); | |
| 14 rectElement.setAttribute("cursor", "url(#cursor)"); | |
| 15 rectElement.setAttribute("width", "200"); | |
| 16 rectElement.setAttribute("height", "200"); | |
| 17 rectElement.setAttribute("fill", "green"); | |
| 18 rootSVGElement.appendChild(rectElement); | |
| 19 | |
| 20 shouldBeEqualToString("cursorElement.getAttribute('y')", "100"); | |
| 21 | |
| 22 function repaintTest() { | |
| 23 cursorElement.setAttribute("y", "0"); | |
| 24 shouldBeEqualToString("cursorElement.getAttribute('y')", "0"); | |
| 25 } | |
| 26 | |
| 27 var successfullyParsed = true; | |
| OLD | NEW |