Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / selection / 4947387.html
blob4ecbe49645a2a544dea3584da12693e4cd0a2b84
1 <p>This tests moveTo{Beginning, End}OfLineAndModifySelection. It should operate on line boundaries and not paragraph boundaries. To run it manually, click inside the first line of the editable region below and do Command+Shift+Left/Right Arrow, the selection should extend to the start/end of the line, not the start/end of the paragraph. Also, moveTo{Beginning, End}OfParagraphAndModifySelection should work.</p>
2 <div id="div" contenteditable="true" style="width: 200px;">The quick brown fox jumped over the lazy brown dog.</div>
4 <script>
6 if (window.testRunner) {
8 window.testRunner.dumpEditingCallbacks();
10 var div = document.getElementById("div");
11 var text = div.firstChild;
12 var sel = window.getSelection();
14 sel.collapse(text, text.length);
15 testRunner.execCommand("MoveToBeginningOfLineAndModifySelection");
17 sel.collapse(text, 0);
18 testRunner.execCommand("MoveToEndOfLineAndModifySelection");
20 sel.collapse(text, text.length);
21 testRunner.execCommand("MoveToBeginningOfParagraphAndModifySelection");
23 sel.collapse(text, 0);
24 testRunner.execCommand("MoveToEndOfParagraphAndModifySelection");
26 </script>