| Index: third_party/WebKit/Source/core/editing/FrameSelectionTest.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/FrameSelectionTest.cpp b/third_party/WebKit/Source/core/editing/FrameSelectionTest.cpp
|
| index 93968c58ce28d55f88a885e95c0ac72ad9fe77ea..ab01e8b30cc746f71f9eb97d189592f46dec43ce 100644
|
| --- a/third_party/WebKit/Source/core/editing/FrameSelectionTest.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/FrameSelectionTest.cpp
|
| @@ -142,9 +142,8 @@ TEST_F(FrameSelectionTest, InvalidatePreviousCaretAfterRemovingLastCharacter) {
|
| // Simulate to type "Hello, World!".
|
| DisableCompositingQueryAsserts disabler;
|
| document().updateStyleAndLayout();
|
| - selection().moveTo(
|
| - createVisiblePosition(selection().end(), selection().affinity()),
|
| - NotUserTriggered);
|
| + selection().setSelection(
|
| + SelectionInDOMTree::Builder().collapse(selection().end()).build());
|
| selection().setCaretRectNeedsUpdate();
|
| EXPECT_TRUE(selection().isCaretBoundsDirty());
|
| EXPECT_FALSE(isPreviousCaretDirtyForTesting());
|
| @@ -155,9 +154,8 @@ TEST_F(FrameSelectionTest, InvalidatePreviousCaretAfterRemovingLastCharacter) {
|
| // Simulate to remove all except for "H".
|
| text->replaceWholeText("H");
|
| document().updateStyleAndLayout();
|
| - selection().moveTo(
|
| - createVisiblePosition(selection().end(), selection().affinity()),
|
| - NotUserTriggered);
|
| + selection().setSelection(
|
| + SelectionInDOMTree::Builder().collapse(selection().end()).build());
|
| selection().setCaretRectNeedsUpdate();
|
| EXPECT_TRUE(selection().isCaretBoundsDirty());
|
| // "H" remains so early previousCaret invalidation isn't needed.
|
|
|