Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / deleting / 6026335.html
blob885ba91170ebcad263a424f3d9efe36396a51ab8
1 <div id="description">This tests deleting a selection that starts at the beginning of an editable pocket inside a non-editable table. The caret should not disappear during the delete and should be placed inside the editable span. When text is then inserted, it should be placed inside that span.</div>
2 <div id="edit" contentEditable="true">
3 <div contentEditable="false"><span>&nbsp;</span><span contentEditable="true" id="start">Hello</span></div>
4 <div id="end"><br></div>
5 </div>
7 <script>
8 if (window.testRunner)
9 window.testRunner.dumpAsText();
10 start = document.getElementById("start");
11 end = document.getElementById("end");
12 s = window.getSelection();
13 s.setBaseAndExtent(start, 0, end, 0);
14 document.execCommand("Delete");
15 document.execCommand("InsertText", false, "Text");
16 if (window.testRunner)
17 document.body.innerText = document.getElementById("description").innerText + "\n" + document.getElementById("edit").innerHTML;
18 </script>