1 <p>This tests Indent on a selection that ends at the start of a paragraph. Since we don't paint the gap before the paragraph for most selections like this, we don't perform Indent on the paragraph that the selection ends in.</p>
2 <div id="div" contenteditable="true">
3 This paragraph should be indented.<br>
4 This paragraph should not be indented.</br>
8 if (window.layoutTestController)
9 window.layoutTestController.dumpEditingCallbacks();
11 var div = document.getElementById("div");
12 var sel = window.getSelection();
13 sel.setPosition(div, 0);
14 sel.modify("extend", "forward", "line");
15 document.execCommand("Indent");