Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / editing / deleting / merge-no-br.html
1 <script>
2 if (window.testRunner)
3      testRunner.dumpEditingCallbacks();
4 </script>
5 <style>
6 div {
7     margin: 0.5em;
8     padding: 0.5em;
9 }
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>
16
17 <script>
18 var s = window.getSelection();
19 var e = document.getElementById("test");
20 s.collapse(e, 0);
21 document.execCommand("Delete");
22 </script>