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

Unified Diff: third_party/WebKit/Source/web/tests/WebFrameTest.cpp

Issue 2199523002: Convert WebRange to be a simple pair of numbers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Forgot the exports. Created 4 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 | « third_party/WebKit/Source/web/WebViewImpl.cpp ('k') | third_party/WebKit/public/web/WebLocalFrame.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/tests/WebFrameTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/WebFrameTest.cpp b/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
index a881cd8ec2ae8b71dc132bd296ab5bd937ac4212..d773da8070b2b47fbbd7fdedbaac6060d8fdbf44 100644
--- a/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
+++ b/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
@@ -5151,7 +5151,7 @@ TEST_P(ParameterizedWebFrameTest, ReplaceMisspelledRange)
const int allTextBeginOffset = 0;
const int allTextLength = 11;
- frame->selectRange(WebRange::fromDocumentRange(frame, allTextBeginOffset, allTextLength));
+ frame->selectRange(WebRange(allTextBeginOffset, allTextLength));
EphemeralRange selectionRange = frame->frame()->selection().selection().toNormalizedEphemeralRange();
EXPECT_EQ(1, spellcheck.numberOfTimesChecked());
@@ -5185,7 +5185,7 @@ TEST_P(ParameterizedWebFrameTest, RemoveSpellingMarkers)
const int allTextBeginOffset = 0;
const int allTextLength = 11;
- frame->selectRange(WebRange::fromDocumentRange(frame, allTextBeginOffset, allTextLength));
+ frame->selectRange(WebRange(allTextBeginOffset, allTextLength));
EphemeralRange selectionRange = frame->frame()->selection().selection().toNormalizedEphemeralRange();
EXPECT_EQ(0U, document->markers().markersInRange(selectionRange, DocumentMarker::Spelling).size());
« no previous file with comments | « third_party/WebKit/Source/web/WebViewImpl.cpp ('k') | third_party/WebKit/public/web/WebLocalFrame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698