Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(408)

Unified Diff: third_party/WebKit/LayoutTests/editing/pasteboard/paste_plain_text_to_newlines.html

Issue 2344563004: Convert editing/pasteboard/3976872.html to use w3c test harness (Closed)
Patch Set: 2016-09-15T17:35:17 Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/editing/pasteboard/paste_plain_text_to_newlines.html
diff --git a/third_party/WebKit/LayoutTests/editing/pasteboard/paste_before_placeholder.html b/third_party/WebKit/LayoutTests/editing/pasteboard/paste_plain_text_to_newlines.html
similarity index 61%
copy from third_party/WebKit/LayoutTests/editing/pasteboard/paste_before_placeholder.html
copy to third_party/WebKit/LayoutTests/editing/pasteboard/paste_plain_text_to_newlines.html
index dbbe72b0fedf78e64528409d8a29d2ef6c1984da..5120cb6870ee80a654db91b7f8833ba86e4af97f 100644
--- a/third_party/WebKit/LayoutTests/editing/pasteboard/paste_before_placeholder.html
+++ b/third_party/WebKit/LayoutTests/editing/pasteboard/paste_plain_text_to_newlines.html
@@ -8,12 +8,12 @@ test(() => {
'This test requires window.internals to access clipboard');
assert_selection(
- '<div contenteditable>^one|<br>two</div>',
+ '<div contenteditable><b>|<br></b></div>',
selection => {
- selection.document.execCommand('cut');
- selection.document.execCommand('paste');
+ selection.setClipboardData('abc');
+ selection.document.execCommand('pasteAndMatchStyle');
},
- '<div contenteditable>one|<br>two</div>',
- 'Paste before placeholder');
+ '<div contenteditable><b>abc|</b></div>',
+ 'pasteAndMatchStyle');
});
</script>

Powered by Google App Engine
This is Rietveld 408576698