1 <svg xmlns=
"http://www.w3.org/2000/svg" xmlns:
xlink=
"http://www.w3.org/1999/xlink">
5 testRunner.dumpAsText();
8 function handler(event)
10 results.push(event.target.localName);
12 document.documentElement.addEventListener('load', handler, true);
14 function reportResults()
16 var console = document.getElementById(
"console");
17 var expected = [
"image",
"svg" ];
18 for (var i =
0; i < expected.length; ++i) {
19 if (results[i] != expected[i]) {
20 console.appendChild(document.createTextNode(
"FAIL: " + i +
" should be " + expected[i] +
" but instead is " + results[i] +
".\n"));
24 console.appendChild(document.createTextNode(
"Passed"));
26 document.documentElement.addEventListener('load', reportResults);
30 <image id=
"image" width=
"100" height=
"100" xlink:
href=
"resources/green-checker.png" />
31 <text y=
"130" x=
"20">This tests that load dispatching works when there are no
</text>
32 <text y=
"150" x=
"20">direct listeners, but there are capturing event listeners on an ancestor.
</text>
33 <text y=
"170" x=
"20" id=
"console" />