| 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 7d5a84cc6247d64f886da17c3167196fb014ea21..a66aa40318439a852ced410615da78961b6fb626 100644
|
| --- a/third_party/WebKit/LayoutTests/editing/assert_selection.js
|
| +++ b/third_party/WebKit/LayoutTests/editing/assert_selection.js
|
| @@ -750,7 +750,8 @@ class Sample {
|
| if (this.loadSelectionInTextArea(selection))
|
| return;
|
| this.selection_.collapse(selection.anchorNode, selection.anchorOffset);
|
| - this.selection_.extend(selection.focusNode, selection.focusOffset);
|
| + if (this.selection_.rangeCount > 0)
|
| + this.selection_.extend(selection.focusNode, selection.focusOffset);
|
| }
|
|
|
| /**
|
|
|