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

Side by Side Diff: LayoutTests/svg/custom/svg2-loadevents-normal.svg

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 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin k" onload="reportLoadEvent(this);runTest();"> 1 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin k" onload="reportLoadEvent(this);runTest();">
2 <script> 2 <script>
3 <![CDATA[ 3 <![CDATA[
4 if (window.testRunner) 4 if (window.testRunner)
5 testRunner.dumpAsText(); 5 testRunner.dumpAsText();
6 6
7 var results = new Array(); 7 var results = new Array();
8 8
9 function reportLoadEvent(el) { 9 function reportLoadEvent(el) {
10 results.push(el.localName); 10 results.push(el.localName);
11 } 11 }
12 function runTest() 12 function runTest()
13 { 13 {
14 var test = document.getElementById("console"); 14 var test = document.getElementById("console");
15 if ( results.length != 4 || results[0] != "image" || 15 if ( results.length != 2 || results[0] != "image" ||
16 results[1] != "text" || results[2] != "g" || 16 results[1] != "svg") {
17 results[3] != "svg") {
18 test.appendChild(document.createTextNode("Failed")); 17 test.appendChild(document.createTextNode("Failed"));
19 } else { 18 } else {
20 test.appendChild(document.createTextNode("Passed")); 19 test.appendChild(document.createTextNode("Passed"));
21 } 20 }
22 } 21 }
23 ]]> 22 ]]>
24 </script> 23 </script>
25 <g onload="reportLoadEvent(this)"> 24 <g onload="reportLoadEvent(this)">
26 <image display="none" externalResourcesRequired="false" id="image" onload="r eportLoadEvent(this)" width="100" height="100" xlink:href="resources/green-check er.png" /> 25 <image id="image" onload="reportLoadEvent(this)" width="100" height="100" xl ink:href="resources/green-checker.png" />
27 <text y="130" x="20">This tests normal load dispatching order and an image t hat does not render(display=none). Bug 16447</text> 26 <text y="130" x="20">This tests normal load dispatching order.</text>
28 <text y="150" x="20" id="console" onload="reportLoadEvent(this)"/> 27 <text y="150" x="20" id="console" onload="reportLoadEvent(this)"/>
29 </g> 28 </g>
30 </svg> 29 </svg>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698