4 <p>This test ensures WebKit allows space be inserted in textarea even when doing so forces the space to wrap to the next line.
</p>
5 <textarea style=
"font-size: 30px; width: 50px;">ab
</textarea>
8 var textarea
= document
.getElementsByTagName('textarea')[0];
10 textarea
.selectionStart
= textarea
.value
.length
;
11 textarea
.selectionEnd
= textarea
.value
.length
;
12 document
.execCommand('InsertText', false, ' ');
14 var originalLength
= textarea
.value
.length
;
15 document
.execCommand('InsertText', false, ' ');
17 document
.writeln(originalLength
< textarea
.value
.length
? 'PASS' : 'FAIL');
19 if (window
.testRunner
) {
20 textarea
.parentNode
.removeChild(textarea
);
21 testRunner
.dumpAsText();