<body>
<p>Copying and pasting the text below in place should not crash.</p>
<textarea id="test" style="white-space:nowrap">line1
line2
</textarea>
<p id="results">FAILED</p>
</body>
<script src="../editing.js"></script>
<script>
function editingTest()
{
    document.getElementById("test").focus();
    execSelectAllCommand();
    execCopyCommand();
    execPasteCommand();
    document.getElementById("results").innerText = "PASSED";
}

runDumpAsTextEditingTest(false);
</script>
