| 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 778ca82f08f38f3fa85319cb9a5d38a9b8243cae..f48cd44b7aba646402334cf283cafd2a74dbb39c 100644
|
| --- a/third_party/WebKit/LayoutTests/editing/inserting/insert-space.html
|
| +++ b/third_party/WebKit/LayoutTests/editing/inserting/insert-space.html
|
| @@ -25,7 +25,7 @@ test(() => assert_selection(
|
| test(() => assert_selection(
|
| '<div contenteditable><p id="para"></p></div>',
|
| selection => {
|
| - var para = selection.document.getElementById('para');
|
| + var para = selection.document.getElementById('para');
|
| para.appendChild(selection.document.createTextNode('A'));
|
| para.appendChild(selection.document.createTextNode(''));
|
| selection.collapse(para.firstChild, 1);
|
| @@ -34,4 +34,17 @@ test(() => assert_selection(
|
| },
|
| '<div contenteditable><p id="para">A\u00A0|</p></div>'),
|
| 'Insert a instead of plain space when it is inserted before the empty text node');
|
| +
|
| +test(() => assert_selection(
|
| + '<div contenteditable><p id="para"></p></div>',
|
| + selection => {
|
| + var para = selection.document.getElementById('para');
|
| + para.appendChild(selection.document.createTextNode('A'));
|
| + para.appendChild(selection.document.createTextNode(' B'));
|
| + selection.collapse(para.firstChild, 1);
|
| +
|
| + selection.document.execCommand('insertText', false, ' ');
|
| + },
|
| + '<div contenteditable><p id="para">A\u00A0| B</p></div>'),
|
| + 'Insert a instead of plain space when it is inserted before the text node that has a leading plain space');
|
| </script>
|
|
|