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

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

Issue 2457523003: Support 'insertReplacementText' for spellcheck (Closed)
Patch Set: 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 3787fb643e0c5e3b8677c1250ee7f3d8058ade91..8132b3cef3e9a767d408f727f073727470cbb6d7 100644
--- a/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
+++ b/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
@@ -6284,7 +6284,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