Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Side by Side Diff: third_party/WebKit/LayoutTests/svg/dynamic-updates/script-tests/SVGCursorElement-dom-x-attr.js

Issue 2522443002: Remove SVGCursorElement (Closed)
Patch Set: Rebase Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // [Name] SVGCursorElement-dom-x-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 'x' attribute of the SVGCursorElement object")
5 createSVGTestCase();
6
7 var cursorElement = createSVGElement("cursor");
8 cursorElement.setAttribute("id", "cursor");
9 cursorElement.setAttribute("x", "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('x')", "100");
21
22 function repaintTest() {
23 cursorElement.setAttribute("x", "0");
24 shouldBeEqualToString("cursorElement.getAttribute('x')", "0");
25 }
26
27 var successfullyParsed = true;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698