OLD | NEW |
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 externalResourcesRequired="false" id="image" onload="reportLoadEvent(
this)" width="100" height="100" xlink:href="resources/green-checker.png" /> | 25 <image display="none" id="image" onload="reportLoadEvent(this)" width="100"
height="100" xlink:href="resources/green-checker.png" /> |
27 <text y="130" x="20">This tests normal load dispatching order. Bug 16447</te
xt> | 26 <text y="130" x="20">This tests normal load dispatching order and an image t
hat does not render(display=none).</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> |
OLD | NEW |