Video is not started even if play button has been pressed.
[framework/web/webkit-efl.git] / LayoutTests / fast / events / mousedown_in_scrollbar.html
1 <html>
2     <head>
3         <script>
4             function hideDiv() {
5                 var dv = document.getElementById('dv');
6                 dv.style.display = "none";
7             }
8             function test() {
9                 if (window.testRunner)
10                     testRunner.dumpAsText();
11                 if (window.eventSender) {
12                     eventSender.dragMode = false;
13                     eventSender.mouseMoveTo(100, 50);
14                     eventSender.mouseDown();
15                     eventSender.mouseMoveTo(100, 55);
16                     eventSender.mouseUp();
17                 }
18             }
19         </script>
20     </head>
21     <body onload="test()">
22         This tests that clicking on a scrollbar does not crash, even if there's an event handler that causes the scrollbar to go away during the process.<br>
23         <div id="dv" style="overflow: auto; width: 100px; height: 100px;" onmousedown="hideDiv()">
24             <div style="height: 200px"></div>
25         </div>
26     </body>
27 </html>