blob: 547524e783ec91317b0991d09cb3480a7cd44d77 [file] [log] [blame]
<script>
if (window.layoutTestController)
layoutTestController.dumpEditingCallbacks();
</script>
<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>
<textarea id="textarea">Tab-> <-Tab</textarea>
<div id="div" contenteditable="true"></div>
<script>
var textarea = document.getElementById("textarea");
textarea.setSelectionRange(0, 0);
document.execCommand("SelectAll");
document.execCommand("Copy");
var div = document.getElementById("div");
window.getSelection().setPosition(div, 0);
document.execCommand("PasteAndMatchStyle");
</script>