Missing cursor/caret showing in search field on google.com
[WebKit-https.git] / LayoutTests / editing / selection / 4975120.html
1 <head>
2 <script>
3 if (window.testRunner)
4     window.testRunner.waitUntilDone();
5
6 function runTest() {
7     var input = document.getElementById("input");
8     input.setSelectionRange(0, 3);
9     var frame = frames[0];
10     frame.focus();
11     frame.getSelection().setPosition(frame.document.body, 0);
12     
13     if (!window.testRunner)
14         return;
15     
16     window.testRunner.setWindowIsKey(false);
17     window.testRunner.setWindowIsKey(true);
18     window.testRunner.notifyDone();
19 }
20 </script>
21 </head>
22 <body>
23 <p>This tests for a bug that caused the parent of an active frame to paint as though it were active when its window becomes key.  To run manually, make another window active and then make this window active. Only the subframe should appear active.</p>
24 <input id="input" type="text" value="foo"><br>
25 <iframe src="../resources/contenteditable-iframe-src.html" onload="runTest()"></iframe></body>
26
27 <script>
28 </script>