| <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> |
| <textarea style="font-size: 30px; width: 50px;">ab</textarea> |
| var textarea = document.getElementsByTagName('textarea')[0]; |
| textarea.selectionStart = textarea.value.length; |
| textarea.selectionEnd = textarea.value.length; |
| document.execCommand('InsertText', false, ' '); |
| var originalLength = textarea.value.length; |
| document.execCommand('InsertText', false, ' '); |
| document.writeln(originalLength < textarea.value.length ? 'PASS' : 'FAIL'); |
| textarea.parentNode.removeChild(textarea); |