Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / pasteboard / pasting-tabs.html
blobed9b3188d3c55d8677be7b0c2e08ab0e4f129060
1 <script>
2 if (window.testRunner)
3 testRunner.dumpEditingCallbacks();
4 </script>
5 <p>This tests copying plain text with tabs and pasting it into an editable region using paste and match tyle. The tabs should be preserved.</p>
6 <textarea id="textarea">Tab-> <-Tab</textarea>
8 <div id="div" contenteditable="true"></div>
10 <script>
11 var textarea = document.getElementById("textarea");
12 textarea.setSelectionRange(0, 0);
13 document.execCommand("SelectAll");
14 document.execCommand("Copy");
15 var div = document.getElementById("div");
16 window.getSelection().collapse(div, 0);
17 document.execCommand("PasteAndMatchStyle");
18 </script>