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

Unified Diff: third_party/WebKit/LayoutTests/editing/inserting/insert-space.html

Issue 2684973005: Check if the next text node has a leading white space (Closed)
Patch Set: add test case Created 3 years, 10 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/commands/CompositeEditCommand.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/editing/inserting/insert-space.html
diff --git a/third_party/WebKit/LayoutTests/editing/inserting/insert-space.html b/third_party/WebKit/LayoutTests/editing/inserting/insert-space.html
index b207f0bf48a0768eb6570d30acfce8f0770eed44..7893a83b3978c094d90959a02d35d2e12fa3338c 100644
--- a/third_party/WebKit/LayoutTests/editing/inserting/insert-space.html
+++ b/third_party/WebKit/LayoutTests/editing/inserting/insert-space.html
@@ -57,4 +57,14 @@ test(() => assert_selection(
},
'<div contenteditable>\u00A0 \u00A0| </div>'),
'Insert spaces into the editable <div> that only has <br> and space as child');
+
+test(() => assert_selection(
+ '<div contenteditable>|<br>\u000A</div>',
+ selection => {
+ selection.document.execCommand('insertText', false, ' ');
+ selection.document.execCommand('insertText', false, ' ');
+ selection.document.execCommand('insertText', false, ' ');
+ },
+ '<div contenteditable>\u00A0 \u00A0|\u000A</div>'),
+ 'Insert spaces into the editable <div> that only has <br> and enter as child');
</script>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698