Index: Source/core/input/EventHandlerTest.cpp |
diff --git a/Source/core/input/EventHandlerTest.cpp b/Source/core/input/EventHandlerTest.cpp |
index da568b64325a22ed3abd8a14ac72e4f812d7bf3c..661de372c1c9af37f680e0857ca594db94159fc6 100644 |
--- a/Source/core/input/EventHandlerTest.cpp |
+++ b/Source/core/input/EventHandlerTest.cpp |
@@ -92,7 +92,7 @@ TEST_F(EventHandlerTest, dragSelectionAfterScroll) |
FrameSelection& selection = document().frame()->selection(); |
ASSERT_TRUE(selection.isRange()); |
- RefPtrWillBeRawPtr<Range> range = selection.toNormalizedRange(); |
+ RefPtrWillBeRawPtr<Range> range = createRange(selection.selection().toNormalizedEphemeralRange()); |
ASSERT_TRUE(range.get()); |
EXPECT_EQ("Line 1\nLine 2", range->text()); |
} |