Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / pasteboard / merge-end-4.html
blob1e42b13ce5057902460027ef548cf1b7ced1b508
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <div id="test" contenteditable="true">xx</div>
6 <script src="../editing.js"></script>
7 <script src="../../resources/dump-as-markup.js"></script>
8 <script>
9 if (window.testRunner)
10 testRunner.dumpEditingCallbacks();
12 Markup.description("Tests for a case where paste's end merge was failing. You should see xfoo\nbar\nbazx.");
14 var e = document.getElementById("test");
15 var s = window.getSelection();
17 s.collapse(e, 0);
18 moveSelectionForwardByCharacterCommand();
19 insertHTMLCommand("<div>foo</div><div>bar</div>baz");
21 Markup.dump('test');
23 </script>
24 </body>
25 </html>