OLD | NEW |
(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 }); |
OLD | NEW |