Index: third_party/WebKit/LayoutTests/editing/pasteboard/copy-paste-underlined.html |
diff --git a/third_party/WebKit/LayoutTests/editing/pasteboard/copy-paste-underlined.html b/third_party/WebKit/LayoutTests/editing/pasteboard/copy-paste-underlined.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..0dcde8a5e47fa9eede59098fdfaccf395eba8dd5 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/editing/pasteboard/copy-paste-underlined.html |
@@ -0,0 +1,23 @@ |
+<!doctype html> |
+<script src="../../resources/testharness.js"></script> |
+<script src="../../resources/testharnessreport.js"></script> |
+<script src="../assert_selection.js"></script> |
+<script> |
+test(() => assert_selection( |
+ [ |
+ '<div contenteditable>^foo bar baz.|</div>', |
+ '<div contenteditable id="paste"><br></div>' |
+ ].join(''), |
+ selection => { |
+ const document = selection.document; |
+ document.execCommand('underline'); |
+ document.execCommand('copy'); |
yosin_UTC9
2017/01/11 03:40:05
Since this test doesn't work with interactive sess
Xiaocheng
2017/01/11 05:07:44
Done.
|
+ document.getElementById('paste').focus(); |
+ document.execCommand('paste'); |
+ }, |
+ [ |
+ '<div contenteditable><u>foo bar baz.</u></div>', |
+ '<div contenteditable id="paste"><u>foo bar baz.|</u></div>' |
+ ].join('')), |
+ 'Copy/paste underlined text.'); |
+</script> |