4 document
.getElementById("console").appendChild(document
.createTextNode(msg
+ "\n"));
8 testRunner
.dumpEditingCallbacks();
10 This tests to see that a caret is placed inside an editable document that is entirely editable even when no caret is requested programmatically. We do this as a convenience. Right now, we only do this convenience when a document's frame becomes first responder or when a document's window becomes key.
11 <pre id=
"console"></pre>
13 document
.designMode
= "on";
14 if (window
.testRunner
) {
15 window
.testRunner
.waitUntilDone();
16 window
.testRunner
.setMainFrameIsFirstResponder(false);
17 window
.testRunner
.setMainFrameIsFirstResponder(true);
19 var sel
= window
.getSelection();
20 if (sel
.anchorNode
&& sel
.anchorNode
== sel
.focusNode
&& sel
.anchorOffset
== sel
.focusOffset
)
23 log("Test Failed - there should be a caret\n");
25 window
.testRunner
.notifyDone();