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

Unified Diff: third_party/WebKit/Source/core/editing/RelocatablePositionTest.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
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

Powered by Google App Engine
This is Rietveld 408576698