Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / 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>
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>
29
30 <script>runTest();</script>
31
32 </body>
33 </html>