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

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

Issue 2345693005: Prune createVisiblePositionDeprecated from unit tests (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/FrameSelectionTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/editing/EditingUtilitiesTest.cpp
diff --git a/third_party/WebKit/Source/core/editing/EditingUtilitiesTest.cpp b/third_party/WebKit/Source/core/editing/EditingUtilitiesTest.cpp
index d939ec25719f5698f753278bf55d40d8a8c931c7..b0d3d8ed7f65b5630e87c2064476944cdb5c1463 100644
--- a/third_party/WebKit/Source/core/editing/EditingUtilitiesTest.cpp
+++ b/third_party/WebKit/Source/core/editing/EditingUtilitiesTest.cpp
@@ -106,16 +106,16 @@ TEST_F(EditingUtilitiesTest, tableElementJustBefore)
EXPECT_EQ(table, tableElementJustBefore(VisiblePositionInFlatTree::afterNode(table)));
EXPECT_EQ(table, tableElementJustBefore(VisiblePosition::lastPositionInNode(table)));
- EXPECT_EQ(table, tableElementJustBefore(createVisiblePositionDeprecated(PositionInFlatTree::lastPositionInNode(table))));
+ EXPECT_EQ(table, tableElementJustBefore(createVisiblePosition(PositionInFlatTree::lastPositionInNode(table))));
- EXPECT_EQ(nullptr, tableElementJustBefore(createVisiblePositionDeprecated(Position(host, 2))));
- EXPECT_EQ(table, tableElementJustBefore(createVisiblePositionDeprecated(PositionInFlatTree(host, 2))));
+ EXPECT_EQ(nullptr, tableElementJustBefore(createVisiblePosition(Position(host, 2))));
+ EXPECT_EQ(table, tableElementJustBefore(createVisiblePosition(PositionInFlatTree(host, 2))));
EXPECT_EQ(nullptr, tableElementJustBefore(VisiblePosition::afterNode(host)));
EXPECT_EQ(nullptr, tableElementJustBefore(VisiblePositionInFlatTree::afterNode(host)));
EXPECT_EQ(nullptr, tableElementJustBefore(VisiblePosition::lastPositionInNode(host)));
- EXPECT_EQ(table, tableElementJustBefore(createVisiblePositionDeprecated(PositionInFlatTree::lastPositionInNode(host))));
+ EXPECT_EQ(table, tableElementJustBefore(createVisiblePosition(PositionInFlatTree::lastPositionInNode(host))));
}
TEST_F(EditingUtilitiesTest, lastEditablePositionBeforePositionInRoot)
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/FrameSelectionTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698