2 if (window.layoutTestController)
3 layoutTestController.dumpEditingCallbacks();
5 <p>The three items below should be stitched together into one ordered list when you click the button.</div>
6 <div contenteditable="true">
7 <div id="item1">foo</div>
8 <div id="item2">bar</div>
9 <div id="item3">baz</div>
12 var s = window.getSelection();
13 s.setPosition(document.getElementById("item1"), 0);
14 document.execCommand("InsertOrderedList", false, "");
15 s.setPosition(document.getElementById("item2"), 0);
16 document.execCommand("InsertOrderedList", false, "");
17 s.setPosition(document.getElementById("item3"), 0);
18 document.execCommand("InsertOrderedList", false, "");