Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / deleting / pruning-after-merge-2.html
blob9b1ede869f07d5dcf0175ff92f723cd2316b8ad0
1 <script>
2 if (window.testRunner)
3 testRunner.dumpEditingCallbacks();
4 </script>
5 <p>This tests to see if deletion correctly prunes the containers of the paragraph being moved during a merge. You should see 'foo<b>bar</b>' below.</p>
7 <div id="test" contenteditable="true"><div>foo</div><div style="border: 1px solid blue; padding: 5px; font-weight: bold;"><div style="border: 1px solid red; padding: 5px">bar</div></div></div>
9 <script>
10 var e = document.getElementById("test");
11 var s = window.getSelection();
12 s.collapse(e, 0);
13 s.modify("move", "forward", "line");
15 document.execCommand("Delete");
17 </script>