Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / no-window-load.html
blob0526b4ca90cd5eb9c1b7d9206729a2399d01952e
1 <script>
2 if (window.testRunner)
3 testRunner.dumpAsText();
5 var bubbleCount = 0;
7 function checkBubble()
9 bubbleCount++;
10 if (bubbleCount > 1) {
11 document.getElementById("bubble").innerHTML = "FAIL (hit " + bubbleCount + " times)";
15 var captureCount = 0;
17 function checkCapture()
19 captureCount++;
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);
29 </script>
30 <div>
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.
34 </div>
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">