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

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

Issue 2962473002: Make Position::LastPositionInNode() to take const Node& instead of Node* (Closed)
Patch Set: 2017-06-26T14:00:00 Created 3 years, 6 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/EditingUtilitiesTest.cpp
diff --git a/third_party/WebKit/Source/core/editing/EditingUtilitiesTest.cpp b/third_party/WebKit/Source/core/editing/EditingUtilitiesTest.cpp
index aeae25413d2ab891185b7869502b026cf4dd93b5..114e2f15cb8b9a41adc312c362c2699ae1ab8d20 100644
--- a/third_party/WebKit/Source/core/editing/EditingUtilitiesTest.cpp
+++ b/third_party/WebKit/Source/core/editing/EditingUtilitiesTest.cpp
@@ -64,7 +64,7 @@ TEST_F(EditingUtilitiesTest, firstEditablePositionAfterPositionInRoot) {
EXPECT_EQ(PositionInFlatTree::AfterNode(*host),
FirstEditablePositionAfterPositionInRoot(
PositionInFlatTree(three, 0), *host));
- EXPECT_EQ(PositionInFlatTree::LastPositionInNode(host),
+ EXPECT_EQ(PositionInFlatTree::LastPositionInNode(*host),
FirstEditableVisiblePositionAfterPositionInRoot(
PositionInFlatTree(three, 0), *host)
.DeepEquivalent());
@@ -138,7 +138,7 @@ TEST_F(EditingUtilitiesTest, tableElementJustBefore) {
EXPECT_EQ(table,
TableElementJustBefore(VisiblePosition::LastPositionInNode(table)));
EXPECT_EQ(table, TableElementJustBefore(CreateVisiblePosition(
- PositionInFlatTree::LastPositionInNode(table))));
+ PositionInFlatTree::LastPositionInNode(*table))));
EXPECT_EQ(nullptr,
TableElementJustBefore(CreateVisiblePosition(Position(host, 2))));
@@ -152,7 +152,7 @@ TEST_F(EditingUtilitiesTest, tableElementJustBefore) {
EXPECT_EQ(nullptr,
TableElementJustBefore(VisiblePosition::LastPositionInNode(host)));
EXPECT_EQ(table, TableElementJustBefore(CreateVisiblePosition(
- PositionInFlatTree::LastPositionInNode(host))));
+ PositionInFlatTree::LastPositionInNode(*host))));
}
TEST_F(EditingUtilitiesTest, lastEditablePositionBeforePositionInRoot) {
« no previous file with comments | « third_party/WebKit/Source/core/editing/EditingUtilities.cpp ('k') | third_party/WebKit/Source/core/editing/EphemeralRange.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698