1 <svg xmlns=
"http://www.w3.org/2000/svg" xmlns:
xlink=
"http://www.w3.org/1999/xlink" onload=
"reportLoadEvent(this);runTest();">
5 testRunner.dumpAsText();
7 var results = new Array();
9 function reportLoadEvent(el) {
10 results.push(el.localName);
14 var test = document.getElementById(
"console");
15 if ( results.length !=
2 || results[
0] !=
"image" ||
16 results[
1] !=
"svg") {
17 test.appendChild(document.createTextNode(
"Failed"));
19 test.appendChild(document.createTextNode(
"Passed"));
24 <g onload=
"reportLoadEvent(this)">
25 <image id=
"image" onload=
"reportLoadEvent(this)" width=
"100" height=
"100" xlink:
href=
"resources/green-checker.png" />
26 <text y=
"130" x=
"20">This tests normal load dispatching order.
</text>
27 <text y=
"150" x=
"20" id=
"console" onload=
"reportLoadEvent(this)"/>