| Index: third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommandTest.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommandTest.cpp b/third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommandTest.cpp
|
| index 9c14cd3e9821d2a668edd123503a60e99a001f83..fc8ab49e3722e0bd6eaabca9561a61b7bbbfce7d 100644
|
| --- a/third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommandTest.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommandTest.cpp
|
| @@ -30,8 +30,9 @@ TEST_F(ReplaceSelectionCommandTest, pastingEmptySpan) {
|
| setBodyContent("foo");
|
|
|
| LocalFrame* frame = document().frame();
|
| - frame->selection().setSelection(
|
| - createVisibleSelection(Position(document().body(), 0)));
|
| + frame->selection().setSelection(SelectionInDOMTree::Builder()
|
| + .collapse(Position(document().body(), 0))
|
| + .build());
|
|
|
| DocumentFragment* fragment = document().createDocumentFragment();
|
| fragment->appendChild(document().createElement("span", ASSERT_NO_EXCEPTION));
|
| @@ -55,7 +56,9 @@ TEST_F(ReplaceSelectionCommandTest, styleTagsInPastedHeadIncludedInContent) {
|
| document().setDesignMode("on");
|
| updateAllLifecyclePhases();
|
| dummyPageHolder().frame().selection().setSelection(
|
| - createVisibleSelection(Position(document().body(), 0)));
|
| + SelectionInDOMTree::Builder()
|
| + .collapse(Position(document().body(), 0))
|
| + .build());
|
|
|
| DocumentFragment* fragment = document().createDocumentFragment();
|
| fragment->parseHTML(
|
|
|