Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / deleting / pruning-after-merge-1.html
blob6804f00df3ed994f4c2a2bfdd6796a4b2d386783
1 <script>
2 if (window.testRunner) {
3 testRunner.dumpEditingCallbacks();
4 testRunner.dumpAsText();
6 </script>
7 <p>This tests the pruning that delete does when the it merges two paragraphs when the selection to delete spans multiple blocks.</p>
8 <p>You should see:<br>b<b>ar<br>baz</b></p>
9 <div id="test" contenteditable="true">boo<b><div>bar</div><div>baz</div></b></div>
11 <script>
12 var s = window.getSelection();
13 var e = document.getElementById("test");
15 s.collapse(e, 0);
16 s.modify("move", "forward", "character");
17 s.modify("extend", "forward", "line");
19 document.execCommand("Delete");
20 </script>