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

Side by Side Diff: third_party/WebKit/LayoutTests/svg/custom/createImageElement2.xhtml

Issue 2086383002: Deflake svg/custom/createImageElement2.xhtml (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 | « no previous file | 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 <html> 1 <html>
2 <head> 2 <head>
3 <title>SVG Image</title> 3 <title>SVG Image</title>
4 </head> 4 </head>
5 <body id="body" style="position:absolute; z-index:0; border:1px solid black; lef t:5%; top:5%; width:90%; height:90%;"> 5 <body id="body" style="position:absolute; z-index:0; border:1px solid black; lef t:5%; top:5%; width:90%; height:90%;">
6 <svg xmlns="http://www.w3.org/2000/svg" id='root' width="600px" height="100px" > 6 <svg xmlns="http://www.w3.org/2000/svg" id='root' width="600px" height="100px" >
7 <script type="text/javascript"><![CDATA[ 7 <script type="text/javascript"><![CDATA[
8 if (window.testRunner)
9 testRunner.waitUntilDone();
10
8 window.onload = function() { 11 window.onload = function() {
9 var el = document.getElementById('root'); 12 var el = document.getElementById('root');
10 var ie = document.createElementNS('http://www.w3.org/2000/svg', "image"); 13 var ie = document.createElementNS('http://www.w3.org/2000/svg', "image");
14 ie.onload = function() {
15 if (window.testRunner)
16 testRunner.notifyDone();
17 };
11 ie.setAttribute("x", "10px"); 18 ie.setAttribute("x", "10px");
12 ie.setAttribute("y", "10px"); 19 ie.setAttribute("y", "10px");
13 ie.setAttribute("width", "100px"); 20 ie.setAttribute("width", "100px");
14 ie.setAttribute("height", "60px"); 21 ie.setAttribute("height", "60px");
15 ie.setAttributeNS('http://www.w3.org/1999/xlink', 'href', 'resources/green -checker.png'); 22 ie.setAttributeNS('http://www.w3.org/1999/xlink', 'href', 'resources/green -checker.png');
16 el.appendChild(ie); 23 el.appendChild(ie);
17 } 24 }
18 ]]> 25 ]]>
19 </script> 26 </script>
20 </svg> 27 </svg>
21 </body> 28 </body>
22 </html> 29 </html>
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698