Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / mousedown_in_scrollbar.html
blobdd6014ae428b08ddd3d7c1b41a7cd0ddc9257391
1 <html>
2 <head>
3 <script>
4 function hideDiv() {
5 var dv = document.getElementById('dv');
6 dv.style.display = "none";
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();
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>