| Index: third_party/WebKit/LayoutTests/editing/pasteboard/paste_text_with_text_transform.html
|
| diff --git a/third_party/WebKit/LayoutTests/editing/pasteboard/paste_text_with_text_transform.html b/third_party/WebKit/LayoutTests/editing/pasteboard/paste_text_with_text_transform.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..7c8b6808fad6f2644eb26eef1bdc10d04e2d05a4
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/editing/pasteboard/paste_text_with_text_transform.html
|
| @@ -0,0 +1,30 @@
|
| +<!doctype html>
|
| +<script src="../../resources/testharness.js"></script>
|
| +<script src="../../resources/testharnessreport.js"></script>
|
| +<script src="../assert_selection.js"></script>
|
| +<script>
|
| +// See detail in http://wkb.ug/3429
|
| +test(() => {
|
| + assert_not_equals(window.testRunner, undefined,
|
| + 'This test requires testRunner to read/write clipboard.');
|
| + assert_selection(
|
| + [
|
| + '<div contenteditable>',
|
| + '<span style="text-transform: capitalize;">^foo|</span>',
|
| + '<span id="target">bar</span>',
|
| + '</div>',
|
| + ].join(''),
|
| + selection => {
|
| + selection.document.execCommand('copy');
|
| + let target = selection.document.getElementById('target');
|
| + selection.collapse(target, 1);
|
| + selection.document.execCommand('pasteAndMatchStyle');
|
| + },
|
| + [
|
| + '<div contenteditable>',
|
| + '<span style="text-transform: capitalize;">foo</span>',
|
| + '<span id="target">barFoo|</span>',
|
| + '</div>',
|
| + ].join(''));
|
| + }, 'text-transform should affect text in clipboard');
|
| +</script>
|
|
|