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

Side by Side Diff: LayoutTests/svg/dom/use-transform.svg

Issue 278033003: Avoid using instanceRoot in layout tests (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 7 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
« no previous file with comments | « LayoutTests/svg/custom/use-on-use-with-child-expected.txt ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 300" version="1.1"> 2 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 300" version="1.1">
3 <defs> 3 <defs>
4 <g id="g" transform="translate(0 50)"> 4 <g id="g" transform="translate(0 50)">
5 <rect id="rect" stroke-width="5px" fill="red" stroke="navy" width="60" hei ght="10"> 5 <rect id="rect" stroke-width="5px" fill="red" stroke="navy" width="60" hei ght="10">
6 <html xmlns="http://www.w3.org/1999/xhtml"> 6 <html xmlns="http://www.w3.org/1999/xhtml">
7 <head> 7 <head>
8 <title>Syntax and parsing</title> 8 <title>Syntax and parsing</title>
9 <meta content="" /> 9 <meta content="" />
10 <link href="" /> 10 <link href="" />
(...skipping 14 matching lines...) Expand all
25 </mat:notprsubset> 25 </mat:notprsubset>
26 </g> 26 </g>
27 </defs> 27 </defs>
28 <use x="25" y="25" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#g"/ > 28 <use x="25" y="25" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#g"/ >
29 <use x="125" y="25" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#g" /> 29 <use x="125" y="25" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#g" />
30 <text>Survived the crash!</text> 30 <text>Survived the crash!</text>
31 <script> 31 <script>
32 // 32 //
33 33
34 var useElement = document.getElementsByTagName("use")[1]; 34 var useElement = document.getElementsByTagName("use")[1];
35 var element = useElement.instanceRoot.correspondingElement; 35 var element = document.getElementById("g");
36 36
37 element.setAttribute("transform", ""); 37 element.setAttribute("transform", "");
38 38
39 if (window.testRunner) 39 if (window.testRunner)
40 testRunner.dumpAsText(); 40 testRunner.dumpAsText();
41 41
42 </script></svg> 42 </script></svg>
OLDNEW
« no previous file with comments | « LayoutTests/svg/custom/use-on-use-with-child-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698