Video is not started even if play button has been pressed.
[framework/web/webkit-efl.git] / LayoutTests / fast / events / window-events-capture.html
1 <html>
2 <head>
3 <script>
4
5 if (window.testRunner) {
6     testRunner.dumpAsText();
7     testRunner.waitUntilDone();
8 }
9 function test()
10 {
11     if (window.eventSender) {
12         eventSender.mouseMoveTo(52, 52);
13         eventSender.mouseDown();
14         eventSender.mouseUp();
15     }
16     window.setTimeout('finish()', 0);
17 }
18
19 function finish()
20 {
21     if (window.testRunner)
22         testRunner.notifyDone();
23 }
24         
25 function log(text) {
26     document.getElementById("result").innerHTML = document.getElementById("result").innerHTML + text + "<br>";
27 }
28
29 function windowClick(e) { 
30     log("Capture: Window.onClick is called"); 
31 };
32
33 window.addEventListener("click", windowClick, true);
34 </script>
35
36 </head>
37 <body onload="test()">
38     
39     This tests that window events will fire in the capture phase.
40     <div id="div2" style="position: absolute; top: 50; left: 50; border: solid thin" onclick="log('stopPropagation called.'); event.stopPropagation();">
41         <a href="javascript:log('Default behavior for link')">Click here</a>
42     </div>
43         
44     <div id="result" style="position: absolute; top: 100; left: 50;"><br></div>
45 </body>
46 </html>