Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / pasteboard / 4944770-2.html
blob5a01df08f34f86ac7af1fbfcc8e0d95391f74af9
1 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
3 <p>This tests smart paste of a fragment that ends in a select element. There should be spaces added before and after the inserted content.</p>
4 <div contenteditable="true" id="copy"><select><option>1</option><option>2</option><option>3</option></select></div>
5 <div contenteditable="true" id="paste">xx</div>
7 <script>
8 var copy = document.getElementById("copy");
9 doubleClick(copy.offsetLeft, copy.offsetTop);
10 document.execCommand("Copy");
12 var paste = document.getElementById("paste");
13 var sel = window.getSelection();
14 sel.collapse(paste, 0);
15 sel.modify("move", "forward", "character");
16 document.execCommand("Paste");
17 </script>