Video is not started even if play button has been pressed.
[framework/web/webkit-efl.git] / LayoutTests / fast / events / no-window-load.html
1 <script>
2 if (window.testRunner)
3     testRunner.dumpAsText();
4
5 var bubbleCount = 0;
6
7 function checkBubble()
8 {
9     bubbleCount++;
10     if (bubbleCount > 1) {
11         document.getElementById("bubble").innerHTML = "FAIL (hit " + bubbleCount + " times)";
12     }
13 }
14
15 var captureCount = 0;
16
17 function checkCapture()
18 {
19     captureCount++;
20     if (captureCount > 1) {
21         document.getElementById("capture").innerHTML = "FAIL (hit " + captureCount + " times)";
22     }
23 }
24
25 window.addEventListener("load", checkBubble, false);
26 window.addEventListener("load", checkCapture, true);
27
28
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>
37
38 <img src="resources/greenbox.png">
39 <img src="resources/greenbox.png">