summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/editing/selection/doubleclick-whitespace-crash.html
blob: 31a60fbbaa0bd1b6e3ce0613ec2e08fb14675e98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<html>
<head>
<script>
if (window.layoutTestController) {
     layoutTestController.dumpAsText();
     layoutTestController.setSmartInsertDeleteEnabled(false);
     layoutTestController.setSelectTrailingWhitespaceEnabled(true);
}
</script>
</head>
<body>
<pre>
Double-click in the white space below this text block -- should not crash.
<a href="https://bugs.webkit.org/show_bug.cgi?id=23232">BUG 23232</a>.
</pre> 
<script type="text/javascript">
    if (window.layoutTestController) {
        // Double click at the end of the body.
        eventSender.mouseMoveTo(10, 100);
        eventSender.mouseDown();
        eventSender.mouseUp();
        eventSender.mouseDown();
        eventSender.mouseUp();

        // As long as didn't crash, we passed.
        document.write("PASS");
    }
</script>
</body>
</html>