Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / selection / designmode-no-caret.html
blob070b108e36f76d8be2e0ae433e4dee088ca59890
1 <script>
2 function log(msg)
4 document.getElementById("console").appendChild(document.createTextNode(msg + "\n"));
7 if (window.testRunner)
8 testRunner.dumpEditingCallbacks();
9 </script>
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>
12 <script>
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)
21 log("Test Passed");
22 else
23 log("Test Failed - there should be a caret\n");
25 window.testRunner.notifyDone();
27 </script>