chromium/third_party/blink/web_tests/editing/caret/caret-hidden-when-unfocused.html

<html>
<body>
<iframe id="firstFrame">
</iframe>
<iframe id="secondFrame">
</iframe>

<script src="../../resources/run-after-layout-and-paint.js"></script>
<script>
window.jsTestIsAsync = true;

var firstFrame = document.getElementById('firstFrame');
firstFrame.contentDocument.documentElement.contentEditable = true;

var secondFrame = document.getElementById('secondFrame');
secondFrame.contentDocument.documentElement.contentEditable = true;

firstFrame.contentDocument.documentElement.onfocus = focusSecondFrameAfterPaint;
firstFrame.contentDocument.documentElement.focus();

if (window.testRunner)
    testRunner.waitUntilDone();

function focusSecondFrameAfterPaint() {
    runAfterLayoutAndPaint(focusSecondFrame);
}

function focusSecondFrame() {
    secondFrame.contentDocument.documentElement.focus();
    if (window.testRunner)
        testRunner.notifyDone();
}
</script>
</body>
</html>