| 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 f8575238dffc8609c72006c437bb057a9ce49f2c..1439b49e6053b0e103b7ea4b45c3c7253976c9a7 100644
|
| --- a/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
|
| +++ b/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
|
| @@ -5289,11 +5289,6 @@ public:
|
| kick(1, 8, WebTextDecorationTypeSpelling);
|
| }
|
|
|
| - void kickGrammar()
|
| - {
|
| - kick(1, 8, WebTextDecorationTypeGrammar);
|
| - }
|
| -
|
| void kickInvisibleSpellcheck()
|
| {
|
| kick(1, 8, WebTextDecorationTypeInvisibleSpellcheck);
|
| @@ -5390,9 +5385,8 @@ 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().addMarker(range.startPosition(), range.endPosition(), DocumentMarker::InvisibleSpellcheck);
|
| - EXPECT_EQ(3U, document->markers().markers().size());
|
| + EXPECT_EQ(2U, document->markers().markers().size());
|
|
|
| spellcheck.kickNoResults();
|
| EXPECT_EQ(0U, document->markers().markers().size());
|
| @@ -5427,14 +5421,6 @@ TEST_P(ParameterizedWebFrameTest, SpellcheckResultsSavedInDocument)
|
| document->execCommand("InsertText", false, "wellcome ", exceptionState);
|
| EXPECT_FALSE(exceptionState.hadException());
|
|
|
| - spellcheck.kickGrammar();
|
| - ASSERT_EQ(1U, document->markers().markers().size());
|
| - ASSERT_NE(static_cast<DocumentMarker*>(0), document->markers().markers()[0]);
|
| - EXPECT_EQ(DocumentMarker::Grammar, document->markers().markers()[0]->type());
|
| -
|
| - document->execCommand("InsertText", false, "wellcome ", exceptionState);
|
| - EXPECT_FALSE(exceptionState.hadException());
|
| -
|
| spellcheck.kickInvisibleSpellcheck();
|
| ASSERT_EQ(1U, document->markers().markers().size());
|
| ASSERT_NE(static_cast<DocumentMarker*>(0), document->markers().markers()[0]);
|
|
|