| Index: third_party/WebKit/LayoutTests/fast/forms/textarea/textarea-paste-newline.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/forms/textarea/textarea-paste-newline.html b/third_party/WebKit/LayoutTests/fast/forms/textarea/textarea-paste-newline.html
|
| index 6abc16776cad5a86d7ae0889d608f1cf07d24ca9..96f5e2e078d7962509430996cc6e3a3b4dc34833 100644
|
| --- a/third_party/WebKit/LayoutTests/fast/forms/textarea/textarea-paste-newline.html
|
| +++ b/third_party/WebKit/LayoutTests/fast/forms/textarea/textarea-paste-newline.html
|
| @@ -17,4 +17,21 @@ test(function() {
|
| document.execCommand("paste");
|
| assert_equals(ta.value, "abc\nabc\n");
|
| }, "Pasting text ending with newline should work correctly.");
|
| +
|
| +test(function() {
|
| + var source = document.createElement("textarea");
|
| + document.body.appendChild(source);
|
| + source.value = "\n";
|
| + source.focus();
|
| + source.select();
|
| + document.execCommand("copy");
|
| +
|
| + var dest = document.createElement("textarea");
|
| + document.body.appendChild(dest);
|
| + dest.focus();
|
| + document.execCommand("paste");
|
| + assert_equals(dest.value, "\n");
|
| + assert_equals(dest.selectionStart, 1);
|
| + assert_equals(dest.selectionEnd, 1);
|
| +}, "Pasting \\n into an empty TEXTAREA should set the caret at the end.");
|
| </script>
|
|
|