Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / inserting / 5994480.html
blob2df3036fdbc21e616642daaf055cd485ce87f208
1 <div id="description">This tests to see if pasting a single paragraph not in a block at the end of a block just before a paragraph not in a block removes a line break. You should see two separate paragraphs below.</div>
2 <div id="edit" contentEditable="true"><div id="paragraphOne">Paragraph One</div>Paragraph two.</div>
4 <script>
5 if (window.testRunner)
6 window.testRunner.dumpAsText();
7 paragraphOne = document.getElementById("paragraphOne");
8 // Place the caret at the end of the block that contains the first paragraph.
9 window.getSelection().collapse(paragraphOne, paragraphOne.childNodes.length);
11 document.execCommand("InsertHTML", false, ".");
12 if (window.testRunner)
13 document.body.innerText = document.getElementById("description").innerText + "\n" + document.getElementById("edit").innerHTML;
14 </script>