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

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

Issue 2457523003: Support 'insertReplacementText' for spellcheck (Closed)
Patch Set: fix for nit from Yosi_UTC9, Xiaocheng 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 1f8dbd06e8257c154d1af60a1ec018b6f9f8364c..552973723a7f8edf12bd9370adb18b26093f1605 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