blob: dd6014ae428b08ddd3d7c1b41a7cd0ddc9257391 [file] [log] [blame]
adele42f7fa82007-08-08 22:11:00 +00001<html>
2 <head>
3 <script>
4 function hideDiv() {
5 var dv = document.getElementById('dv');
6 dv.style.display = "none";
7 }
8 function test() {
rniwa@webkit.orgada3c202012-06-20 03:28:42 +00009 if (window.testRunner)
10 testRunner.dumpAsText();
adele42f7fa82007-08-08 22:11:00 +000011 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>