Title: [88946] trunk/LayoutTests
- Revision
- 88946
- Author
- [email protected]
- Date
- 2011-06-15 09:28:49 -0700 (Wed, 15 Jun 2011)
Log Message
2011-06-15 Ryosuke Niwa <[email protected]>
Reviewed by Alexey Proskuryakov.
Textarea will not accept space characters at end of line
https://bugs.webkit.org/show_bug.cgi?id=61483
Added a regression test now that the bug has been resolved by r88883.
* editing/input/insert-wrapping-space-in-textarea-expected.txt: Added.
* editing/input/insert-wrapping-space-in-textarea.html: Added.
Modified Paths
Added Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (88945 => 88946)
--- trunk/LayoutTests/ChangeLog 2011-06-15 16:26:45 UTC (rev 88945)
+++ trunk/LayoutTests/ChangeLog 2011-06-15 16:28:49 UTC (rev 88946)
@@ -1,3 +1,15 @@
+2011-06-15 Ryosuke Niwa <[email protected]>
+
+ Reviewed by Alexey Proskuryakov.
+
+ Textarea will not accept space characters at end of line
+ https://bugs.webkit.org/show_bug.cgi?id=61483
+
+ Added a regression test now that the bug has been resolved by r88883.
+
+ * editing/input/insert-wrapping-space-in-textarea-expected.txt: Added.
+ * editing/input/insert-wrapping-space-in-textarea.html: Added.
+
2011-06-15 Andrey Kosyakov <[email protected]>
Unreviewed, rolled out r88937 (broke build on mac)
Added: trunk/LayoutTests/editing/input/insert-wrapping-space-in-textarea-expected.txt (0 => 88946)
--- trunk/LayoutTests/editing/input/insert-wrapping-space-in-textarea-expected.txt (rev 0)
+++ trunk/LayoutTests/editing/input/insert-wrapping-space-in-textarea-expected.txt 2011-06-15 16:28:49 UTC (rev 88946)
@@ -0,0 +1,3 @@
+This test ensures WebKit allows space be inserted in textarea even when doing so forces the space to wrap to the next line.
+
+PASS
Added: trunk/LayoutTests/editing/input/insert-wrapping-space-in-textarea.html (0 => 88946)
--- trunk/LayoutTests/editing/input/insert-wrapping-space-in-textarea.html (rev 0)
+++ trunk/LayoutTests/editing/input/insert-wrapping-space-in-textarea.html 2011-06-15 16:28:49 UTC (rev 88946)
@@ -0,0 +1,26 @@
+<!DOCTYPE>
+<html>
+<body>
+<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>
+<script>
+
+var textarea = document.getElementsByTagName('textarea')[0];
+textarea.focus();
+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');
+
+if (window.layoutTestController) {
+ textarea.parentNode.removeChild(textarea);
+ layoutTestController.dumpAsText();
+}
+
+</script>
+</body>
+</html>
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes