| Index: third_party/WebKit/LayoutTests/editing/assert_selection.js
|
| diff --git a/third_party/WebKit/LayoutTests/editing/assert_selection.js b/third_party/WebKit/LayoutTests/editing/assert_selection.js
|
| index 2ee74145ff63043a2113562c4e58759055572bf4..e96ea686eb6c29249bddc8ffe37c7232db87d332 100644
|
| --- a/third_party/WebKit/LayoutTests/editing/assert_selection.js
|
| +++ b/third_party/WebKit/LayoutTests/editing/assert_selection.js
|
| @@ -370,6 +370,8 @@ class Serializer {
|
| * @param {number} childIndex
|
| */
|
| handleSelection(parentNode, childIndex) {
|
| + if (this.selection_.isNone)
|
| + return;
|
| if (parentNode === this.selection_.focusNode &&
|
| childIndex === this.selection_.focusOffset) {
|
| this.emit('|');
|
| @@ -388,6 +390,8 @@ class Serializer {
|
| handleCharacterData(node) {
|
| /** @type {string} */
|
| const text = node.nodeValue;
|
| + if (this.selection_.isNone)
|
| + return this.emit(text);
|
| /** @type {number} */
|
| const anchorOffset = this.selection_.anchorOffset;
|
| /** @type {number} */
|
|
|