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

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

Issue 2322853004: Convert an assertion to if-condition in ReplaceSelectionCommand::doApply() (Closed)
Patch Set: 2016-09-12T14:19:36 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_text.html
diff --git a/third_party/WebKit/LayoutTests/editing/pasteboard/paste_text.html b/third_party/WebKit/LayoutTests/editing/pasteboard/paste_text.html
index ba0661763d38a1c07f2ce482e6108bf9e4d0b3d3..9ad8ca5d70c764608ea4af690c1a47b6d46e255d 100644
--- a/third_party/WebKit/LayoutTests/editing/pasteboard/paste_text.html
+++ b/third_party/WebKit/LayoutTests/editing/pasteboard/paste_text.html
@@ -7,9 +7,6 @@ test(() => {
assert_not_equals(window.internals, undefined,
'This test requires window.internals to access clipboard');
- // TDOO(yosin): We should consolidate "paste-text-00[6-9].html" since
- // they were commited in one patch.
-
assert_selection(
'<div contenteditable>foo ^bar| baz</div>',
selection => {
@@ -187,5 +184,27 @@ test(() => {
'</div>',
].join(''),
'8 Paste with text crossing DIV twice');
+
+ assert_selection(
+ [
+ '<div contenteditable>',
+ 'one',
+ '<div>two^</div>',
+ 't|hree',
+ '</div>',
+ ].join(''),
+ selection => {
+ selection.document.execCommand('copy');
+ selection.document.execCommand('paste');
+ selection.document.execCommand('paste');
+ },
+ [
+ '<div contenteditable>',
+ 'one',
+ '<div>two</div>',
+ 't<div>t|hree</div>',
+ '</div>',
+ ].join(''),
+ '9 Paste with text crossing start of DIV');
}, 'Paste text');
</script>

Powered by Google App Engine
This is Rietveld 408576698