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

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

Issue 2763893002: [WIP] Clean up DocumentMarkerController API (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 28af54158677b611b6dac0044c729a413d2943f7..a9f4f37beb571478eafaa5cefef27dfffd3bb86d 100644
--- a/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
+++ b/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
@@ -6537,10 +6537,10 @@ TEST_P(ParameterizedWebFrameTest, SpellcheckResultErasesMarkers) {
EXPECT_FALSE(exceptionState.hadException());
auto range = EphemeralRange::rangeOfContents(*element);
- document->markers().addMarker(range.startPosition(), range.endPosition(),
- DocumentMarker::Spelling);
- document->markers().addMarker(range.startPosition(), range.endPosition(),
- DocumentMarker::Grammar);
+ document->markers().addSpellingMarker(range.startPosition(),
+ range.endPosition());
+ document->markers().addGrammarMarker(range.startPosition(),
+ range.endPosition());
EXPECT_EQ(2U, document->markers().markers().size());
spellcheck.kickNoResults();

Powered by Google App Engine
This is Rietveld 408576698