Missing cursor/caret showing in search field on google.com
[WebKit-https.git] / LayoutTests / editing / selection / caret-and-focus-ring.html
1 <html>
2 <head>
3 <script>
4 if (window.testRunner)
5      testRunner.dumpEditingCallbacks();
6 </script>
7
8
9 <script>
10
11 function runTest() {
12     if (window.testRunner) {
13         window.testRunner.setWindowIsKey(false);
14         window.testRunner.setMainFrameIsFirstResponder(false);
15     }
16     var s = window.getSelection();
17     var e = document.getElementById("test");
18     
19     e.focus();
20     s.setBaseAndExtent(e, 0, e, 0);
21 }
22 </script>
23
24 <title>Caret and Focus Halo</title> 
25 </head>
26 <body>
27 <p>This tests that the caret and the focus halo are not displayed when the WebView is not focused (using the pixel output from DumpRenderTree).</p>\r<div id="editme" contenteditable="true">This is an <span id="test">editable</span> region. No caret or focus ring should appear in the pixel results.</div>
28
29 <script>runTest();</script>
30
31 </body>
32 </html>