Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / inserting / 5685601-1.html
blob4e4db09ba048e2dd421171d3c796fe602b9c3858
1 <p>This tests for a bug where hitting return in an editable root that contains only a place holder would add two paragraph instead of one. Below you should see an empty paragraph followed by one that contains only 'x'.</p>
2 <div id="div" contenteditable="true"><br></div>
4 <script>
5 div = document.getElementById("div");
6 div.focus();
7 document.execCommand("InsertParagraph");
8 document.execCommand("InsertText", false, "x");
9 if (window.testRunner) {
10 window.testRunner.dumpAsText();
11 document.body.innerText = div.innerHTML;
13 </script>