Index: third_party/WebKit/Source/core/editing/RelocatablePositionTest.cpp |
diff --git a/third_party/WebKit/Source/core/editing/RelocatablePositionTest.cpp b/third_party/WebKit/Source/core/editing/RelocatablePositionTest.cpp |
index 791989f7656c0824e9e53ce6c20cc39377ba22ed..a87547459686b22ce3619f168ec261cf29ac4518 100644 |
--- a/third_party/WebKit/Source/core/editing/RelocatablePositionTest.cpp |
+++ b/third_party/WebKit/Source/core/editing/RelocatablePositionTest.cpp |
@@ -20,13 +20,14 @@ TEST_F(RelocatablePositionTest, position) |
RelocatablePosition relocatablePosition(Position(textarea, PositionAnchorType::BeforeAnchor)); |
textarea->remove(); |
+ document().updateStyleAndLayout(); |
// RelocatablePosition should track the given Position even if its original |
// anchor node is moved away from the document. |
Position expectedPosition(boldface, PositionAnchorType::AfterAnchor); |
Position trackedPosition = relocatablePosition.position(); |
EXPECT_TRUE(trackedPosition.anchorNode()->isConnected()); |
- EXPECT_EQ(createVisiblePositionDeprecated(expectedPosition).deepEquivalent(), createVisiblePositionDeprecated(trackedPosition).deepEquivalent()); |
+ EXPECT_EQ(createVisiblePosition(expectedPosition).deepEquivalent(), createVisiblePosition(trackedPosition).deepEquivalent()); |
} |
} // namespace blink |