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

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

Issue 2457523003: Support 'insertReplacementText' for spellcheck (Closed)
Patch Set: fix for chongz's nit Created 4 years, 2 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 e2bd5d4a6407c6d12b671e65c867d13d18b8c337..b4c13731a7eb68a4edd08a1adae72e01ca1866c6 100644
--- a/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
+++ b/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
@@ -6285,7 +6285,8 @@ TEST_P(ParameterizedWebFrameTest, CancelSpellingRequestCrash) {
WebSettings::EditingBehaviorWin);
element->focus();
- frame->frame()->editor().replaceSelectionWithText("A", false, false);
+ frame->frame()->editor().replaceSelectionWithText(
+ "A", false, false, InputEvent::InputType::InsertReplacementText);
frame->frame()->spellChecker().cancelCheck();
}

Powered by Google App Engine
This is Rietveld 408576698