1 <svg id=
"outersvg" xmlns=
"http://www.w3.org/2000/svg" xmlns:
xlink=
"http://www.w3.org/1999/xlink" onload=
"reportLoadEvent(this);runTest();">
2 <text y=
"150" x=
"20" id=
"console" onload=
"reportLoadEvent(this)"/>
6 testRunner.dumpAsText();
8 var results = new Array();
10 function reportLoadEvent(el) {
16 var test = document.getElementById(
"console");
17 if ( results.length !=
3 ||
18 results[
0] !=
"image" ||
19 results[
1] !=
"innersvg" ||
20 results[
2] !=
"outersvg") {
21 test.textContent =
"Failed - " + results.join(
", ");
23 test.textContent =
"Passed";
28 <svg id=
"innersvg" onload=
"reportLoadEvent(this)">
29 <image id=
"image" onload=
"reportLoadEvent(this)" width=
"100" height=
"100" xlink:
href=
"resources/green-checker.png" />
30 <text y=
"130" x=
"20">This tests load event dispatching on nested svg elements.
</text>