Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / deleting / 5272440.html
blob47cc07d85a1e056f56a6f4a0c204c1725042c956
1 <p>This tests for a bug where deleting the contents of an editable root that's inline would introduce a new line.</p>
2 <div style="border: 1px solid black;"><span id="span" contenteditable="true">foo</span></div>
4 <script>
5 span = document.getElementById("span");
6 selection = window.getSelection();
7 selection.collapse(span, 0);
8 document.execCommand("SelectAll");
9 document.execCommand("Delete");
10 document.execCommand("InsertText", false, "x");
11 document.execCommand("Delete");
12 document.execCommand("InsertText", false, "x");
13 document.execCommand("Delete");
14 document.execCommand("InsertText", false, "There shouldn't be any blank lines in the black bordered area.");
15 </script>