Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / selection / 4975120.html
blob7c1cf331c72592af703975a770285806a6406eb2
1 <head>
2 <script>
3 if (window.testRunner)
4 window.testRunner.waitUntilDone();
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().collapse(frame.document.body, 0);
13 if (!window.testRunner)
14 return;
16 window.testRunner.setWindowIsKey(false);
17 window.testRunner.setWindowIsKey(true);
18 window.testRunner.notifyDone();
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>
27 <script>
28 </script>