3 testRunner.dumpAsText();
10 if (bubbleCount > 1) {
11 document.getElementById("bubble").innerHTML = "FAIL (hit " + bubbleCount + " times)";
17 function checkCapture()
20 if (captureCount > 1) {
21 document.getElementById("capture").innerHTML = "FAIL (hit " + captureCount + " times)";
25 window.addEventListener("load", checkBubble, false);
26 window.addEventListener("load", checkCapture, true);
31 This test ensures that "load" events for images do not trigger bubble
32 or capture handlers on the window object. We need this quirk to be
33 compatible with a variety of web sites.
35 Bubble for load event hit at most once: <span id="bubble">PASS</span>.<br>
36 Capture for load event hit at most once: <span id="capture">PASS</span>.<br>
38 <img src="resources/greenbox.png">
39 <img src="resources/greenbox.png">