Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(241)

Unified Diff: third_party/WebKit/Source/core/editing/SelectionControllerTest.cpp

Issue 2920733002: Rename VisibleSelection::end() to End() (Closed)
Patch Set: 2017-06-01T18:31:38 Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/editing/SelectionControllerTest.cpp
diff --git a/third_party/WebKit/Source/core/editing/SelectionControllerTest.cpp b/third_party/WebKit/Source/core/editing/SelectionControllerTest.cpp
index 52cb1bfecd9355a523e7a3b7ccc0f915e7be36b8..f3862271b22c7239732751a531d631aac646da07 100644
--- a/third_party/WebKit/Source/core/editing/SelectionControllerTest.cpp
+++ b/third_party/WebKit/Source/core/editing/SelectionControllerTest.cpp
@@ -69,7 +69,7 @@ TEST_F(SelectionControllerTest, setNonDirectionalSelectionIfNeeded) {
EXPECT_EQ(Position(top, 1), VisibleSelectionInDOMTree().Base());
EXPECT_EQ(Position::BeforeNode(host), VisibleSelectionInDOMTree().Extent());
EXPECT_EQ(Position(top, 1), VisibleSelectionInDOMTree().Start());
- EXPECT_EQ(Position(top, 3), VisibleSelectionInDOMTree().end());
+ EXPECT_EQ(Position(top, 3), VisibleSelectionInDOMTree().End());
EXPECT_EQ(PositionInFlatTree(top, 1), GetVisibleSelectionInFlatTree().Base());
EXPECT_EQ(PositionInFlatTree(bottom, 3),
@@ -77,7 +77,7 @@ TEST_F(SelectionControllerTest, setNonDirectionalSelectionIfNeeded) {
EXPECT_EQ(PositionInFlatTree(top, 1),
GetVisibleSelectionInFlatTree().Start());
EXPECT_EQ(PositionInFlatTree(bottom, 3),
- GetVisibleSelectionInFlatTree().end());
+ GetVisibleSelectionInFlatTree().End());
// bottom to top
SetNonDirectionalSelectionIfNeeded(
@@ -90,7 +90,7 @@ TEST_F(SelectionControllerTest, setNonDirectionalSelectionIfNeeded) {
EXPECT_EQ(Position::BeforeNode(bottom->parentNode()),
VisibleSelectionInDOMTree().Extent());
EXPECT_EQ(Position(bottom, 0), VisibleSelectionInDOMTree().Start());
- EXPECT_EQ(Position(bottom, 3), VisibleSelectionInDOMTree().end());
+ EXPECT_EQ(Position(bottom, 3), VisibleSelectionInDOMTree().End());
EXPECT_EQ(PositionInFlatTree(bottom, 3),
GetVisibleSelectionInFlatTree().Base());
@@ -99,7 +99,7 @@ TEST_F(SelectionControllerTest, setNonDirectionalSelectionIfNeeded) {
EXPECT_EQ(PositionInFlatTree(top, 1),
GetVisibleSelectionInFlatTree().Start());
EXPECT_EQ(PositionInFlatTree(bottom, 3),
- GetVisibleSelectionInFlatTree().end());
+ GetVisibleSelectionInFlatTree().End());
}
TEST_F(SelectionControllerTest, setCaretAtHitTestResult) {

Powered by Google App Engine
This is Rietveld 408576698