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

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

Issue 2451423003: Add a test case for bug 659109 (Closed)
Patch Set: updated the test case Created 4 years, 2 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 | no next file » | 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 f48cd44b7aba646402334cf283cafd2a74dbb39c..b207f0bf48a0768eb6570d30acfce8f0770eed44 100644
--- a/third_party/WebKit/LayoutTests/editing/inserting/insert-space.html
+++ b/third_party/WebKit/LayoutTests/editing/inserting/insert-space.html
@@ -47,4 +47,14 @@ test(() => assert_selection(
},
'<div contenteditable><p id="para">A\u00A0| B</p></div>'),
'Insert a &nbsp; instead of plain space when it is inserted before the text node that has a leading plain space');
+
+test(() => assert_selection(
+ '<div contenteditable>|<br> </div>',
+ selection => {
+ selection.document.execCommand('insertText', false, ' ');
+ selection.document.execCommand('insertText', false, ' ');
+ selection.document.execCommand('insertText', false, ' ');
+ },
+ '<div contenteditable>\u00A0 \u00A0| </div>'),
+ 'Insert spaces into the editable <div> that only has <br> and space as child');
</script>
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698