2009-01-12 Eric Roman <eroman@chromium.org>
[WebKit-https.git] / LayoutTests / editing / selection / doubleclick-whitespace-crash.html
1 <html>
2 <head>
3 <script>
4 if (window.layoutTestController) {
5      layoutTestController.dumpAsText();
6      layoutTestController.setSmartInsertDeleteEnabled(false);
7      layoutTestController.setSelectTrailingWhitespaceEnabled(true);
8 }
9 </script>
10 </head>
11 <body>
12 <pre>
13 Double-click in the white space below this text block -- should not crash.
14 <a href="https://bugs.webkit.org/show_bug.cgi?id=23232">BUG 23232</a>.
15 </pre> 
16 <script type="text/javascript">
17     if (window.layoutTestController) {
18         // Double click at the end of the body.
19         eventSender.mouseMoveTo(10, 100);
20         eventSender.mouseDown();
21         eventSender.mouseUp();
22         eventSender.mouseDown();
23         eventSender.mouseUp();
24
25         // As long as didn't crash, we passed.
26         document.write("PASS");
27     }
28 </script>
29 </body>
30 </html>