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

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

Issue 2771603002: [WIP] Change DocumentMarkerController::add*Marker() methods to take an EphemeralRange (Closed)
Patch Set: Created 3 years, 9 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/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 d44f654b66ed7a0ade6bb4bc6fe2607f6e026964..8410d3c4d8e33116199c84ca750ee13399205617 100644
--- a/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
+++ b/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
@@ -6537,10 +6537,8 @@ TEST_P(ParameterizedWebFrameTest, SpellcheckResultErasesMarkers) {
EXPECT_FALSE(exceptionState.hadException());
auto range = EphemeralRange::rangeOfContents(*element);
- document->markers().addSpellingMarker(range.startPosition(),
- range.endPosition());
- document->markers().addGrammarMarker(range.startPosition(),
- range.endPosition());
+ document->markers().addSpellingMarker(range);
+ document->markers().addGrammarMarker(range);
EXPECT_EQ(2U, document->markers().markers().size());
spellcheck.kickNoResults();

Powered by Google App Engine
This is Rietveld 408576698