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

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

Issue 2765133002: [WIP] Add DocumentMarkerController::addGrammarMarker() and addSpellingMarker() (Closed)
Patch Set: Respond to comments 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
« no previous file with comments | « third_party/WebKit/Source/core/testing/Internals.cpp ('k') | no next file » | 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 146f8e217958b470fd382db5997a64925a30600d..c7cab7f9f3a8a29053a086b609a9147886fe9372 100644
--- a/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
+++ b/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
@@ -6597,10 +6597,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();
« no previous file with comments | « third_party/WebKit/Source/core/testing/Internals.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698