Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / input / insert-wrapping-space-in-textarea.html
blob909f54bdfbeab0fd5dc51e5360809d244f795649
1 <!DOCTYPE>
2 <html>
3 <body>
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>
6 <script>
8 var textarea = document.getElementsByTagName('textarea')[0];
9 textarea.focus();
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();
24 </script>
25 </body>
26 </html>