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

Unified Diff: Source/core/input/EventHandlerTest.cpp

Issue 1311623004: Make EventHandler to use VisibleSelection::toNormalizedEphemeralRange() instead of toNormalizedRange (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2015-08-25T17:22:50 Created 5 years, 4 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 | « Source/core/input/EventHandler.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
}
« no previous file with comments | « Source/core/input/EventHandler.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698