Missing cursor/caret showing in search field on google.com
[WebKit-https.git] / LayoutTests / editing / selection / doubleclick-whitespace-img-crash.html
1 <html>
2 <head>
3 <script>
4 if (window.testRunner) {
5      testRunner.dumpAsText();
6      internals.settings.setSmartInsertDeleteEnabled(false);
7      internals.settings.setSelectTrailingWhitespaceEnabled(true);
8      testRunner.waitUntilDone();
9 }
10
11 function startTest() {
12      if (window.testRunner) {
13           // The IFRAME has loaded with an image in it. Double click
14           // in any of the space around the image in the IFRAME.
15           // (The image is 76 x 103 pixels big).
16           eventSender.mouseMoveTo(150, 150);
17           eventSender.mouseDown();
18           eventSender.mouseUp();
19           eventSender.mouseDown();
20           eventSender.mouseUp();
21
22           // As long as didn't crash, we passed.
23           document.body.innerHTML = "PASS";
24           testRunner.notifyDone();
25      }
26 }
27 </script>
28 </head>
29 <body onload="startTest()">
30
31 <iframe src="../resources/abe.png" style="width: 300px; height: 300px"></iframe>
32
33 <p>
34 Double-click in the white space around the image -- should not crash or access invalid memory.
35 <a href="https://bugs.webkit.org/show_bug.cgi?id=25335">BUG 25335</a>.
36 </p> 
37
38 </body>
39 </html>