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

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

Issue 2710603002: Adds a test for setting empty composition text. (Closed)
Patch Set: Created 3 years, 10 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/browser/ui/views/ime/input_ime_apitest_nonchromeos.cc ('k') | ui/base/ime/dummy_text_input_client.h » ('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 6f0b371a4bd39c2796d25394f8cc13846fca6281..18a89150162e363e1eb88e78dde5ddeb5774020d 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
@@ -83,6 +83,19 @@ chrome.test.runTests([
chrome.test.succeed();
});
},
+ function testEmptyComposition() {
+ chrome.input.ime.setComposition({
+ contextID: 1,
+ text: '',
+ cursor: 0
+ }, function() {
+ if(chrome.runtime.lastError) {
+ chrome.test.fail();
+ return;
+ }
+ chrome.test.succeed();
+ });
+ },
// Test input.ime.sendKeyEvents API.
function testSendKeyEvents() {
// Sends a normal character key.
« no previous file with comments | « chrome/browser/ui/views/ime/input_ime_apitest_nonchromeos.cc ('k') | ui/base/ime/dummy_text_input_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698