| Index: third_party/WebKit/Source/core/editing/VisibleSelectionTest.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/VisibleSelectionTest.cpp b/third_party/WebKit/Source/core/editing/VisibleSelectionTest.cpp
|
| index 6fb33fc2f24b30dc729c0dbac22c02171926b3ad..4077327dc41f99cc19d2e69e094e41712aa9ad51 100644
|
| --- a/third_party/WebKit/Source/core/editing/VisibleSelectionTest.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/VisibleSelectionTest.cpp
|
| @@ -82,16 +82,16 @@ TEST_F(VisibleSelectionTest, appendTrailingWhitespaceWithAfterAnchor) {
|
| // TODO(editing-dev): We should remove above comment once we fix [1].
|
| // [1] http://crbug.com/701657 double-click on user-select:none should not
|
| // compute selection.
|
| - VisibleSelection selection =
|
| + const VisibleSelection selection =
|
| CreateVisibleSelection(SelectionInDOMTree::Builder()
|
| .Collapse(Position::BeforeNode(*input))
|
| .Extend(Position::AfterNode(*input))
|
| .SetGranularity(kWordGranularity)
|
| .Build());
|
| - selection.AppendTrailingWhitespace();
|
| + const VisibleSelection result = selection.AppendTrailingWhitespace();
|
|
|
| - EXPECT_EQ(Position::BeforeNode(*input), selection.Start());
|
| - EXPECT_EQ(Position::AfterNode(*input), selection.End());
|
| + EXPECT_EQ(Position::BeforeNode(*input), result.Start());
|
| + EXPECT_EQ(Position::AfterNode(*input), result.End());
|
| }
|
|
|
| TEST_F(VisibleSelectionTest, expandUsingGranularity) {
|
|
|