Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / inserting / 5803706-1.html
blob1829c270b2fadaaaac3c320fa6e7218a9d82f4bd
1 <div id="description">This tests to make sure that hitting return at the end of a header element breaks out of it. Below, a regular paragraph element should follow the h2.</div>
2 <div id="edit" contentEditable="true"><h2 id="h2">foo</h2></div>
4 <script>
5 if (window.testRunner)
6 window.testRunner.dumpAsText();
7 h2 = document.getElementById("h2");
8 text = h2.firstChild;
9 window.getSelection().collapse(text, text.length);
10 document.execCommand("InsertParagraph");
11 if (window.testRunner)
12 document.body.innerText = document.getElementById("description").innerText + "\n\n" + document.getElementById("edit").innerHTML;
13 </script>