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

Unified Diff: chrome/test/data/extensions/api_test/input_ime_nonchromeos/background.js

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
« no previous file with comments | « chrome/common/extensions/api/input_ime.json ('k') | ui/base/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/extensions/api_test/input_ime_nonchromeos/background.js
diff --git a/chrome/test/data/extensions/api_test/input_ime_nonchromeos/background.js b/chrome/test/data/extensions/api_test/input_ime_nonchromeos/background.js
index e3ba1d6ef705d8e9be9ab6a54bcafca377c8e80e..d007bc68105ba5945bff9f498e52549d44355007 100644
--- a/chrome/test/data/extensions/api_test/input_ime_nonchromeos/background.js
+++ b/chrome/test/data/extensions/api_test/input_ime_nonchromeos/background.js
@@ -52,5 +52,23 @@ chrome.test.runTests([
win.addEventListener('unload', function() {});
chrome.test.succeed();
});
+ },
+
+ function testSendKeyEvents() {
+ chrome.input.ime.sendKeyEvents({
+ 'contextID': 1,
+ 'keyData': [{
+ 'type': 'keydown',
+ 'requestId': '0',
+ 'key': 'a',
+ 'code': 'KeyA'
+ }, {
+ 'type': 'keyup',
+ 'requestId': '1',
+ 'key': 'a',
+ 'code': 'KeyA'
+ }]
+ });
+ chrome.test.succeed();
}
]);
« no previous file with comments | « chrome/common/extensions/api/input_ime.json ('k') | ui/base/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698