blob: c78f9e082de9a437f16465b816ff03332b345555 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script>
if (window.testRunner) {
testRunner.waitUntilDone();
testRunner.dumpAsText();
internals.settings.setAsynchronousSpellCheckingEnabled(true);
internals.settings.setUnifiedTextCheckerEnabled(true);
}
function runTest() {
var textToSelect = "This text should be selected, but this frame shouldn't be focused.";
var frame = document.getElementById("frame");
var s = frame.contentDocument.getSelection();
s.setPosition(frame.contentDocument.body, 0);
frame.contentDocument.execCommand("InsertText", false, textToSelect);
frame.parentNode.removeChild(frame);
window.setTimeout(function() {
if (window.testRunner)
testRunner.notifyDone();
}, 50);
}
</script>
</head>
<body>
<div>PASS unless crash.</div>
<iframe id="frame" src="../resources/contenteditable-iframe-src.html" onload="runTest();"></iframe>
</body>
</html>