| Index: third_party/WebKit/Source/core/editing/spellcheck/SpellCheckerTest.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/spellcheck/SpellCheckerTest.cpp b/third_party/WebKit/Source/core/editing/spellcheck/SpellCheckerTest.cpp
|
| index ba97adde06d4a4a0985cfa399192096e2f4368a5..06bfba1032a949b501cb755950025ca85d6f116b 100644
|
| --- a/third_party/WebKit/Source/core/editing/spellcheck/SpellCheckerTest.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/spellcheck/SpellCheckerTest.cpp
|
| @@ -51,10 +51,12 @@
|
| VisibleSelection oldSelection = document().frame()->selection().selection();
|
|
|
| Position newPosition(input->innerEditorElement()->firstChild(), 3);
|
| + VisibleSelection newSelection = createVisibleSelection(
|
| + SelectionInDOMTree::Builder().collapse(newPosition).build());
|
| document().frame()->selection().setSelection(
|
| - SelectionInDOMTree::Builder().collapse(newPosition).build(),
|
| - FrameSelection::CloseTyping | FrameSelection::ClearTypingStyle |
|
| - FrameSelection::DoNotUpdateAppearance);
|
| + newSelection, FrameSelection::CloseTyping |
|
| + FrameSelection::ClearTypingStyle |
|
| + FrameSelection::DoNotUpdateAppearance);
|
| ASSERT_EQ(3, input->selectionStart());
|
|
|
| Persistent<SpellChecker> spellChecker(SpellChecker::create(page().frame()));
|
|
|