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> |