Missing cursor/caret showing in search field on google.com
[WebKit-https.git] / LayoutTests / editing / selection / selection-background.html
1 <html>
2 <head>
3 <script>
4 if (window.testRunner)
5      testRunner.dumpEditingCallbacks();
6 </script>
7
8 <script>
9
10 function runTest() {
11     if (window.testRunner) {
12         window.testRunner.setWindowIsKey(false);
13         window.testRunner.setMainFrameIsFirstResponder(false);
14     }
15     var s = window.getSelection();
16     var e = document.getElementById("selectme");
17     
18     s.setBaseAndExtent(e, 0, e, 1);
19 }
20
21 </script>
22
23 <title>Selection tint when WebView is not focused</title> 
24 </head>
25 <body>
26 <p>This tests that the selection tint is grey when the WebView is not focused (using the pixel output from DumpRenderTree).</p>
27
28 <div id="selectme">This text should be selected.</div>
29
30 <script>runTest();</script>
31 </body>
32 </html>