4 This tests indenting "three". You should see numbers 1 and 2 before "two" and "three" respectively.
5 <ol id="e" contenteditable="true">
8 <li id="test">three</li>
14 <li>Before:<span id="c1"></span></li>
15 <li>After:<span id="c2"></span></li>
18 <script type="text/javascript">
20 if (window.layoutTestController) {
21 layoutTestController.dumpEditingCallbacks();
22 layoutTestController.dumpAsText();
25 var e = document.getElementById('e');
27 document.getElementById('c1').appendChild(document.createTextNode(e.innerHTML));
29 var s = window.getSelection();
30 var r = document.createRange();
31 r.selectNode(document.getElementById('test'));
34 document.execCommand("Indent", false, "");
36 document.getElementById('c2').appendChild(document.createTextNode(e.innerHTML));