Chromium Code Reviews| Index: LayoutTests/editing/pasteboard/paste-newline-in-all-selected-textarea.html |
| diff --git a/LayoutTests/editing/pasteboard/paste-newline-in-all-selected-textarea.html b/LayoutTests/editing/pasteboard/paste-newline-in-all-selected-textarea.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..1d07e3ab970aabbdcaf2d02bd010f50fb3abe2dc |
| --- /dev/null |
| +++ b/LayoutTests/editing/pasteboard/paste-newline-in-all-selected-textarea.html |
| @@ -0,0 +1,22 @@ |
| +<!DOCTYPE html> |
| +<html> |
| +<body> |
| +<textarea id='test' cols=5 rows=4> |
| +test |
| + |
| +</textarea> |
| +<script src='../../resources/js-test.js'></script> |
| +<script> |
| +var textarea = document.getElementById('test'); |
| +textarea.focus(); |
| + |
| +// copy a new line |
| +textarea.setSelectionRange(4, 5); |
| +document.execCommand('copy'); |
| + |
| +document.execCommand('SelectAll'); |
| +document.execCommand('paste'); |
| +shouldBeEqualToString('textarea.value', '\n'); |
|
leviw_travelin_and_unemployed
2014/01/07 19:48:10
It would be nice if you added a description of wha
ziran.sun
2014/01/08 11:58:53
Done.
|
| +</script> |
| +</body> |
| +</html> |