adele | 42f7fa8 | 2007-08-08 22:11:00 +0000 | [diff] [blame] | 1 | <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.org | ada3c20 | 2012-06-20 03:28:42 +0000 | [diff] [blame] | 9 | if (window.testRunner) |
| 10 | testRunner.dumpAsText(); |
adele | 42f7fa8 | 2007-08-08 22:11:00 +0000 | [diff] [blame] | 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> |