| OLD | NEW |
| 1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import logging, os, re, string, time | 5 import logging, os, re, string, time |
| 6 from autotest_lib.client.bin import site_ui_test, test | 6 from autotest_lib.client.bin import site_ui_test, test |
| 7 from autotest_lib.client.common_lib import error, site_ui, utils | 7 from autotest_lib.client.common_lib import error, site_ui, utils |
| 8 | 8 |
| 9 def wait_for_ibus_daemon_or_die(timeout=10): | 9 def wait_for_ibus_daemon_or_die(timeout=10): |
| 10 # Wait until ibus-daemon starts. ibus-daemon starts after a user | 10 # Wait until ibus-daemon starts. ibus-daemon starts after a user |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 # ibus-daemon reads them before chrome connects, | 101 # ibus-daemon reads them before chrome connects, |
| 102 # so they show up as a false failure. | 102 # so they show up as a false failure. |
| 103 'general/hotkeynext_engine_in_menu', | 103 'general/hotkeynext_engine_in_menu', |
| 104 'general/hotkeyprevious_engine', | 104 'general/hotkeyprevious_engine', |
| 105 'generalglobal_engine', | 105 'generalglobal_engine', |
| 106 'generalglobal_previous_engine']) | 106 'generalglobal_previous_engine']) |
| 107 | 107 |
| 108 expected_unwritten = set(['engine/ChewingsyncCapsLockLocal', | 108 expected_unwritten = set(['engine/ChewingsyncCapsLockLocal', |
| 109 'engine/ChewingnumpadAlwaysNumber', | 109 'engine/ChewingnumpadAlwaysNumber', |
| 110 'engine/ChewinginputStyle', | 110 'engine/ChewinginputStyle', |
| 111 'engine/HangulHanjaKeys', | |
| 112 'engine/PinyinCorrectPinyin_GN_NG', | 111 'engine/PinyinCorrectPinyin_GN_NG', |
| 113 'engine/PinyinCorrectPinyin_IOU_IU', | 112 'engine/PinyinCorrectPinyin_IOU_IU', |
| 114 'engine/PinyinCorrectPinyin_MG_NG', | 113 'engine/PinyinCorrectPinyin_MG_NG', |
| 115 'engine/PinyinCorrectPinyin_UEN_UN', | 114 'engine/PinyinCorrectPinyin_UEN_UN', |
| 116 'engine/PinyinCorrectPinyin_UE_VE', | 115 'engine/PinyinCorrectPinyin_UE_VE', |
| 117 'engine/PinyinCorrectPinyin_VE_UE', | 116 'engine/PinyinCorrectPinyin_VE_UE', |
| 118 'engine/PinyinCorrectPinyin_V_U', | 117 'engine/PinyinCorrectPinyin_V_U', |
| 119 'engine/PinyinDoublePinyinShowRaw', | 118 'engine/PinyinDoublePinyinShowRaw', |
| 120 'engine/PinyinFuzzyPinyin_ANG_AN', | 119 'engine/PinyinFuzzyPinyin_ANG_AN', |
| 121 'engine/PinyinFuzzyPinyin_AN_ANG', | 120 'engine/PinyinFuzzyPinyin_AN_ANG', |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 | 227 |
| 229 self.exefile = os.path.join(self.autodir, | 228 self.exefile = os.path.join(self.autodir, |
| 230 'deps/ibusclient/ibusclient') | 229 'deps/ibusclient/ibusclient') |
| 231 self.test_reachable() | 230 self.test_reachable() |
| 232 self.test_supported_engines() | 231 self.test_supported_engines() |
| 233 for type_name in ['boolean', 'int', 'double', 'string', 'boolean_list', | 232 for type_name in ['boolean', 'int', 'double', 'string', 'boolean_list', |
| 234 'int_list', 'double_list', 'string_list']: | 233 'int_list', 'double_list', 'string_list']: |
| 235 self.test_config(type_name) | 234 self.test_config(type_name) |
| 236 | 235 |
| 237 self.test_check_unused_ibus_values() | 236 self.test_check_unused_ibus_values() |
| OLD | NEW |