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

Side by Side Diff: chrome/test/data/extensions/api_test/input_method/ime_menu/background.js

Issue 1552743003: Add chrome.inputMethodPrivate.onImeMenuActivationChanged API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update ExtensionInputMethodApiTest.ImeMenuActivation test. Created 4 years, 11 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 chrome.inputMethodPrivate.getInputMethodConfig(function(config) {
6 chrome.test.assertTrue(config["isImeMenuActivated"]);
7 chrome.test.sendMessage('config_ready');
8 });
9
10 // We just add the listener without receiving any event at first time. The test
11 // continues in input_method_apitest_chromeos.cc to trigger the event, and
12 // succeeds after getting the 'event_ready' message.
13 chrome.inputMethodPrivate.onImeMenuActivationChanged.addListener(
14 function(isActive) {
15 chrome.test.assertFalse(isActive);
16 // Wait for the 'event_ready' message in
17 // ExtensionInputMethodApiTest.ImeMenuActivation.
18 chrome.test.sendMessage('event_ready');
19 });
20
21 chrome.test.notifyPass();
Devlin 2016/01/27 20:33:27 We shouldn't need this.
Azure Wei 2016/01/28 12:24:58 Deleted.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698