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

Unified Diff: third_party/WebKit/LayoutTests/editing/pasteboard/copy-paste-underlined.html

Issue 2626933002: Make Editor::appliedEditing update layout before changing selection (Closed)
Patch Set: Rebased Created 3 years, 11 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/Editor.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
index 38aea5bc3e79c5c248b4be650e70add607ef9abb..704b7aff52926d3f9f8b4987ec0aba1361423650 100644
--- a/third_party/WebKit/LayoutTests/editing/pasteboard/copy-paste-underlined.html
+++ b/third_party/WebKit/LayoutTests/editing/pasteboard/copy-paste-underlined.html
@@ -25,4 +25,27 @@ test(() => {
'<div contenteditable id="paste"><u>foo bar baz.|</u></div>'
].join(''));
}, 'Copy/paste underlined text.');
+
+test(() => {
+ assert_not_equals(
+ window.testRunner, undefined,
+ 'This test requires testRunner.');
+
+ assert_selection(
+ [
+ '<div contenteditable spellcheck="false">^foo bar baz.|</div>',
+ '<div contenteditable id="paste"><br></div>'
+ ].join(''),
+ selection => {
+ const document = selection.document;
+ document.execCommand('underline');
+ document.execCommand('copy');
+ document.getElementById('paste').focus();
+ document.execCommand('paste');
+ },
+ [
+ '<div contenteditable spellcheck="false"><u>foo bar baz.</u></div>',
+ '<div contenteditable id="paste"><u>foo bar baz.|</u></div>'
+ ].join(''));
+ }, 'Copy/paste underlined text with spell checker off.');
</script>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/Editor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698