5 if (window
.testRunner
) {
6 testRunner
.waitUntilDone();
7 testRunner
.dumpAsText();
8 internals
.settings
.setAsynchronousSpellCheckingEnabled(true);
9 internals
.settings
.setUnifiedTextCheckerEnabled(true);
13 var textToSelect
= "This text should be selected, but this frame shouldn't be focused.";
14 var frame
= document
.getElementById("frame");
15 var s
= frame
.contentDocument
.getSelection();
16 s
.collapse(frame
.contentDocument
.body
, 0);
17 frame
.contentDocument
.execCommand("InsertText", false, textToSelect
);
18 frame
.parentNode
.removeChild(frame
);
19 window
.setTimeout(function() {
20 if (window
.testRunner
)
21 testRunner
.notifyDone();
27 <div>PASS unless crash.
</div>
28 <iframe id=
"frame" src=
"../resources/contenteditable-iframe-src.html" onload=
"runTest();"></iframe>