Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / caret / caret-hidden-when-unfocused.html
blob9344e7dd474eefd0d934dda53ced6a84a0443bc6
1 <html>
2 <body>
3 <iframe id="firstFrame">
4 </iframe>
5 <iframe id="secondFrame">
6 </iframe>
8 <script src="../../resources/run-after-layout-and-paint.js"></script>
9 <script>
10 window.jsTestIsAsync = true;
12 var firstFrame = document.getElementById('firstFrame');
13 firstFrame.contentDocument.documentElement.contentEditable = true;
15 var secondFrame = document.getElementById('secondFrame');
16 secondFrame.contentDocument.documentElement.contentEditable = true;
18 firstFrame.contentDocument.documentElement.onfocus = focusSecondFrameAfterPaint;
19 firstFrame.contentDocument.documentElement.focus();
21 if (window.testRunner)
22 testRunner.waitUntilDone();
24 function focusSecondFrameAfterPaint() {
25 runAfterLayoutAndPaint(focusSecondFrame);
28 function focusSecondFrame() {
29 secondFrame.contentDocument.documentElement.focus();
30 if (window.testRunner)
31 testRunner.notifyDone();
33 </script>
34 </body>
35 </html>