| Index: third_party/WebKit/Source/core/editing/commands/InsertListCommandTest.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/commands/InsertListCommandTest.cpp b/third_party/WebKit/Source/core/editing/commands/InsertListCommandTest.cpp
|
| index b40897ec7e917cda1e3ea82d94877a50c90223f1..c7792716460e99c1df5e1960c61fa3bcb5800c86 100644
|
| --- a/third_party/WebKit/Source/core/editing/commands/InsertListCommandTest.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/commands/InsertListCommandTest.cpp
|
| @@ -33,8 +33,11 @@ TEST_F(InsertListCommandTest, ShouldCleanlyRemoveSpuriousTextNode) {
|
| Text* emptyText = document().createTextNode("");
|
| document().body()->insertBefore(emptyText, document().body()->firstChild());
|
| updateAllLifecyclePhases();
|
| - document().frame()->selection().setSelection(createVisibleSelection(
|
| - Position(document().body(), 0), Position(document().body(), 2)));
|
| + document().frame()->selection().setSelection(
|
| + SelectionInDOMTree::Builder()
|
| + .collapse(Position(document().body(), 0))
|
| + .extend(Position(document().body(), 2))
|
| + .build());
|
|
|
| InsertListCommand* command =
|
| InsertListCommand::create(document(), InsertListCommand::OrderedList);
|
|
|