4 <textarea id=
"test" cols=
5 rows=
4>
5 This test verifies that pasting a newline in a textarea with all text selected
9 <script src=
"../../resources/js-test.js"></script>
11 var textarea
= document
.getElementById('test');
15 textarea
.setSelectionRange(99, 100);
16 document
.execCommand('Copy');
18 document
.execCommand('SelectAll');
19 document
.execCommand('Paste');
20 shouldBeEqualToString('textarea.value', '\n');