Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / pasteboard / smart-paste-008.html
blob37e10482fc55a98b5b5ba508809b4c4c39fb4adb
1 <script>
2 if (window.testRunner)
3 testRunner.dumpEditingCallbacks();
4 </script>
5 <p>There was a bug in paste's smart replace whitespace handling. In some cases, it used information gathered at the start of the selection being pasted into to decide whether or not a space needed to be added to the end of the incoming content.</p>
6 <p>A smart paste is performed into a selection starting in one block and ending in another. Spaces should surround the pasted word.</p>
7 <div id="test" contenteditable="true"><div>foo</div><div>x bar</div></div>
9 <script type="text/javascript" src="../editing.js"></script>
10 <script>
11 var s = window.getSelection();
12 var e = document.getElementById("test");
14 setSelectionCommand(e, 0, e, 0);
15 doubleClickAtSelectionStart();
16 copyCommand();
17 moveSelectionBackwardByCharacterCommand();
18 moveSelectionForwardByCharacterCommand();
19 extendSelectionForwardByLineCommand();
20 pasteCommand();
21 </script>