Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / inserting / paragraph-separator-in-table-2.html
blob802f436a7662059f742f588cc815aa19b12edfc3
1 <script>
2 if (window.testRunner)
3 testRunner.dumpEditingCallbacks();
4 </script>
5 <p>This tests InsertParagraphSeparator inside table cells. The first cell should contain 'Cell' and a newline, and the second cell should contain 'Two'.</p>
7 <div contenteditable="true"><table border="1"><tr><td>Cell <span id="start">One</span></td><td><span id="end">Cell</span> Two</td></tr></table></div>
9 <script>
10 var start = document.getElementById("start").firstChild;
11 var end = document.getElementById("end").firstChild;
12 var s = window.getSelection();
14 s.setBaseAndExtent(start, 0, end, end.length);
15 document.execCommand("InsertParagraph");
16 </script>