Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / pasteboard / 8145-3.html
blob85a19ce6132e62cd58cc365661fb51101b89d054
1 <script>
2 if (window.testRunner)
3 testRunner.dumpEditingCallbacks();
4 </script>
5 <p>This tests a change made with the fix for 8145. The paragraph separator inserted to prevent nesting blocks from the fragment to paste inside the block where the paste occured was not being inserted when the fragment had an interchange newline at the end.</p>
6 <div id="test" style="border: 1px solid black;" contenteditable="true"></div>
8 <script>
9 var s = window.getSelection();
10 var p = document.getElementById("test");
11 p.innerHTML = "<div>foo</div>";
12 s.collapse(p, 0);
13 s.modify("move", "forward", "character");
14 var html = "<div>bar</div>baz<br class='Apple-interchange-newline'>";
15 document.execCommand("InsertHTML", false, html);
16 </script>