2 if (window.layoutTestController)
3 layoutTestController.dumpEditingCallbacks();
5 <p>These are tests for execCommand(InsertHorizontalRule).</p>
7 <p>This test inserts an hr between 'foo' and 'bar'.</p>
8 <div id="test1" contenteditable="true">foobar</div>
10 <p>This test inserts an hr with id="hr" between 'foo' and 'bar', fetches the hr using its id, then removes it.</p>
11 <div id="test2" contenteditable="true">foobar</div>
13 <script type="text/javascript" src="../editing.js"></script>
15 var s = window.getSelection();
18 e = document.getElementById("test1");
20 moveSelectionForwardByCharacterCommand();
21 moveSelectionForwardByCharacterCommand();
22 moveSelectionForwardByCharacterCommand();
23 document.execCommand("InsertHorizontalRule", false, "");
25 e = document.getElementById("test2");
27 moveSelectionForwardByCharacterCommand();
28 moveSelectionForwardByCharacterCommand();
29 moveSelectionForwardByCharacterCommand();
31 document.execCommand("InsertHorizontalRule", false, id);
32 var hr = document.getElementById(id);
33 hr.parentNode.removeChild(hr);