Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / deleting / merge-no-br.html
blob5c031590e731b139ef9cbe9558a95e64cfd6ce57
1 <script>
2 if (window.testRunner)
3 testRunner.dumpEditingCallbacks();
4 </script>
5 <style>
6 div {
7 margin: 0.5em;
8 padding: 0.5em;
10 </style>
11 <p>This places the caret before the 'T' in 'Two' and Deletes. 'One' and 'Two' should be merged but the blocks containing 'Three' and 'Four' should remain untouched.</p>
12 <div contenteditable="true">
13 <div style="border: 3px solid red;">One</div>
14 <div id="test"style="border: 3px solid green;">Two<div style="border: 3px solid black;">Three</div>Four</div>
15 </div>
17 <script>
18 var s = window.getSelection();
19 var e = document.getElementById("test");
20 s.collapse(e, 0);
21 document.execCommand("Delete");
22 </script>