Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / inserting / insert-paragraph-01.html
blobb0eb953c97c157903a173f1325986f58dfe3d3d2
1 <script>
2 if (window.testRunner)
3 testRunner.dumpEditingCallbacks();
4 </script>
5 <p>This tests inserting a paragraph separator before a table. There should be an empty paragraph before the table and the caret should be just before the table.</p>
6 <div contenteditable="true" id="div"><table border="1"><tr><td>foo</td></tr></table></div>
8 <script>
9 var sel = window.getSelection();
10 var div = document.getElementById("div");
11 sel.collapse(div, 0);
12 document.execCommand("InsertParagraph");
13 </script>