| OLD | NEW |
| (Empty) |
| 1 <p>This tests Indent on a selection that ends at the start of a paragraph. Sinc
e 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> | |
| 5 </div> | |
| 6 | |
| 7 <script> | |
| 8 if (window.testRunner) | |
| 9 window.testRunner.dumpEditingCallbacks(); | |
| 10 | |
| 11 var div = document.getElementById("div"); | |
| 12 var sel = window.getSelection(); | |
| 13 sel.collapse(div, 0); | |
| 14 sel.modify("extend", "forward", "line"); | |
| 15 document.execCommand("Indent"); | |
| 16 </script> | |
| OLD | NEW |