Editing tests should use testRunner instead of layoutTestController
[WebKit-https.git] / LayoutTests / editing / deleting / delete-hr.html
1 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
2 <script>
3 function editingTest() {
4     var selection = window.getSelection();
5     var s = document.getElementById("start");
6     selection.setPosition(s, 0);
7     execMoveSelectionForwardByCharacterCommand();
8     for (i = 0; i < 2; i++) {
9         deleteCommand();
10     }
11 }
12 </script>
13 <div contenteditable="true" id="test">
14 <div>Before</div>
15   <hr>
16 <span id="start">after</span>
17 </div>
18 <script>
19 runEditingTest();
20 </script>