OLD | NEW |
| (Empty) |
1 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin
k" onload="reportLoadEvent(this);runTest();"> | |
2 <script> | |
3 <![CDATA[ | |
4 if (window.testRunner) | |
5 testRunner.dumpAsText(); | |
6 | |
7 var results = new Array(); | |
8 | |
9 function reportLoadEvent(el) { | |
10 results.push(el.localName); | |
11 } | |
12 function runTest() | |
13 { | |
14 var test = document.getElementById("console"); | |
15 if ( results.length != 4 || results[0] != "image" || | |
16 results[1] != "text" || results[2] != "g" || | |
17 results[3] != "svg") { | |
18 test.appendChild(document.createTextNode("Failed")); | |
19 } else { | |
20 test.appendChild(document.createTextNode("Passed")); | |
21 } | |
22 } | |
23 ]]> | |
24 </script> | |
25 <g onload="reportLoadEvent(this)"> | |
26 <image externalResourcesRequired="false" 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> | |
28 <text y="150" x="20" id="console" onload="reportLoadEvent(this)"/> | |
29 </g> | |
30 </svg> | |
OLD | NEW |