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

Side by Side Diff: LayoutTests/svg/dynamic-updates/script-tests/SVGUseElement-svgdom-href1-prop.js

Issue 62083002: Remove support for the externalResourcesRequired attribute. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebaseline test Created 6 years, 11 months 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
1 // [Name] SVGUseElement-svgdom-href1-prop.js 1 // [Name] SVGUseElement-svgdom-href1-prop.js
2 // [Expected rendering result] A use element first with an internal then with an external referenced document - and a series of PASS messages 2 // [Expected rendering result] A use element first with an internal then with an external referenced document - and a series of PASS messages
3 3
4 description("Tests dynamic updates of the 'href' property of the SVGUseElement o bject") 4 description("Tests dynamic updates of the 'href' property of the SVGUseElement o bject")
5 createSVGTestCase(); 5 createSVGTestCase();
6 6
7 var defsElement = createSVGElement("defs"); 7 var defsElement = createSVGElement("defs");
8 rootSVGElement.appendChild(defsElement); 8 rootSVGElement.appendChild(defsElement);
9 9
10 var useElement = createSVGElement("use"); 10 var useElement = createSVGElement("use");
11 useElement.setAttribute("x", "10"); 11 useElement.setAttribute("x", "10");
12 useElement.setAttribute("y", "10"); 12 useElement.setAttribute("y", "10");
13 useElement.setAttribute("externalResourcesRequired", "true");
14 useElement.setAttribute("onload", "completeTest()"); 13 useElement.setAttribute("onload", "completeTest()");
15 useElement.setAttributeNS(xlinkNS, "xlink:href", "#MyRect"); 14 useElement.setAttributeNS(xlinkNS, "xlink:href", "#MyRect");
16 15
17 var rectElement = createSVGElement("rect"); 16 var rectElement = createSVGElement("rect");
18 rectElement.setAttribute("id", "MyRect"); 17 rectElement.setAttribute("id", "MyRect");
19 rectElement.setAttribute("x", "64"); 18 rectElement.setAttribute("x", "64");
20 rectElement.setAttribute("y", "0"); 19 rectElement.setAttribute("y", "0");
21 rectElement.setAttribute("width", "64"); 20 rectElement.setAttribute("width", "64");
22 rectElement.setAttribute("height", "64"); 21 rectElement.setAttribute("height", "64");
23 rectElement.setAttribute("fill", "red"); 22 rectElement.setAttribute("fill", "red");
24 23
25 defsElement.appendChild(rectElement); 24 defsElement.appendChild(rectElement);
26 defsElement.appendChild(useElement); 25 defsElement.appendChild(useElement);
27 26
28 rootSVGElement.setAttribute("height", "200"); 27 rootSVGElement.setAttribute("height", "200");
29 rootSVGElement.appendChild(useElement); 28 rootSVGElement.appendChild(useElement);
30 29
31 shouldBeEqualToString("useElement.href.baseVal", "#MyRect"); 30 shouldBeEqualToString("useElement.href.baseVal", "#MyRect");
32 31
33 function repaintTest() { 32 function repaintTest() {
34 useElement.href.baseVal = "../custom/resources/rgb.svg#G"; 33 useElement.href.baseVal = "../custom/resources/rgb.svg#G";
35 shouldBeEqualToString("useElement.href.baseVal", "../custom/resources/rgb.sv g#G"); 34 shouldBeEqualToString("useElement.href.baseVal", "../custom/resources/rgb.sv g#G");
36 } 35 }
37 36
38 var successfullyParsed = true; 37 var successfullyParsed = true;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698