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

Unified Diff: chrome/browser/ui/views/ime/input_ime_apitest_nonchromeos.cc

Issue 1771173002: Implement input.ime.sendKeyEvents API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test failure. Created 4 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
Index: chrome/browser/ui/views/ime/input_ime_apitest_nonchromeos.cc
diff --git a/chrome/browser/ui/views/ime/input_ime_apitest_nonchromeos.cc b/chrome/browser/ui/views/ime/input_ime_apitest_nonchromeos.cc
index 31de3d9a49e674b43f0fa9f2e0df6f25b13b2c6e..e1341b94ad77d84897d86c88496d4d1fbb038833 100644
--- a/chrome/browser/ui/views/ime/input_ime_apitest_nonchromeos.cc
+++ b/chrome/browser/ui/views/ime/input_ime_apitest_nonchromeos.cc
@@ -38,6 +38,10 @@ IN_PROC_BROWSER_TEST_F(InputImeApiTest, CreateWindowTest) {
ASSERT_TRUE(RunExtensionTest("input_ime_nonchromeos")) << message_;
+ // Test the input.ime.sendKeyEvents API.
+ ASSERT_EQ(client->insert_char_count(), 1);
+ ASSERT_EQ(client->last_insert_char(), L'a');
+
input_method->DetachTextInputClient(client.get());
}
« no previous file with comments | « chrome/browser/ui/input_method/input_method_engine_base.cc ('k') | chrome/common/extensions/api/input_ime.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698