Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / selection / caret-and-focus-ring.html
blob1b8465ee1ae77d6a337221fe51a82031c17c920e
1 <html>
2 <head>
3 <script>
4 if (window.testRunner)
5 testRunner.dumpEditingCallbacks();
6 </script>
9 <script>
11 function runTest() {
12 if (window.testRunner) {
13 window.testRunner.setWindowIsKey(false);
14 window.testRunner.setMainFrameIsFirstResponder(false);
16 var s = window.getSelection();
17 var e = document.getElementById("test");
19 e.focus();
20 s.setBaseAndExtent(e, 0, e, 0);
22 </script>
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>
28 <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>
30 <script>runTest();</script>
32 </body>
33 </html>