Editing tests should use testRunner instead of layoutTestController
[WebKit-https.git] / LayoutTests / editing / inserting / 5378847.html
1 <p>This tests character insertion on a line with an unrendered text node.  You should see 'Hello' and then 'World' below.</p>
2 <div id="div" contenteditable="true"><table border="1"><tr><td>Hello</td></tr></table><br></div>
3
4 <script>
5 if (window.testRunner)
6     window.testRunner.dumpAsText();
7     
8 var div = document.getElementById("div");
9 children = div.childNodes;
10 br = children[1];
11 text = document.createTextNode('\n');
12 div.insertBefore(text, br);
13 sel = window.getSelection();
14 sel.setPosition(div, 1);
15 document.execCommand("InsertText", false, "World");
16 </script>