<script>
if (window.testRunner)
testRunner.waitUntilDone();
function runTest() {
var frame = frames[0];
var doc = frame.document;
var body = doc.body;
var sel = frame.getSelection();
sel.collapse(body, 0);
if (window.testRunner)
testRunner.notifyDone();
}
</script>
<p>This tests for a caret painting bug. You should not see a caret in the editable subframe below.</p>
<iframe src="../resources/contenteditable-iframe-src.html" onload="runTest();"></iframe>