OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 The Chromium Authors. All rights reserved. | 2 * Copyright 2013 The Chromium Authors. All rights reserved. |
3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
5 */ | 5 */ |
6 | 6 |
7 /** | 7 /** |
8 * Set to true while debugging virtual keyboard tests, for verbose debug output. | 8 * Set to true while debugging virtual keyboard tests, for verbose debug output. |
9 */ | 9 */ |
10 var debugging = false; | 10 var debugging = false; |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 | 80 |
81 var virtualKeyboardPrivateMethods = [ | 81 var virtualKeyboardPrivateMethods = [ |
82 'getKeyboardConfig', | 82 'getKeyboardConfig', |
83 'hideKeyboard', | 83 'hideKeyboard', |
84 'insertText', | 84 'insertText', |
85 'lockKeyboard', | 85 'lockKeyboard', |
86 'moveCursor', | 86 'moveCursor', |
87 'sendKeyEvent', | 87 'sendKeyEvent', |
88 'setMode', | 88 'setMode', |
89 'setKeyboardState', | 89 'setKeyboardState', |
| 90 'setHotrodKeyboard' |
90 ]; | 91 ]; |
91 | 92 |
92 var inputMethodPrivateMethods = [ | 93 var inputMethodPrivateMethods = [ |
93 'getCurrentInputMethod', | 94 'getCurrentInputMethod', |
94 'getInputMethods', | 95 'getInputMethods', |
95 'setCurrentInputMethod' | 96 'setCurrentInputMethod' |
96 ]; | 97 ]; |
97 | 98 |
98 addMocks('chrome.virtualKeyboardPrivate', virtualKeyboardPrivateMethods); | 99 addMocks('chrome.virtualKeyboardPrivate', virtualKeyboardPrivateMethods); |
99 addMocks('chrome.inputMethodPrivate', inputMethodPrivateMethods); | 100 addMocks('chrome.inputMethodPrivate', inputMethodPrivateMethods); |
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
431 assertTrue(!!switchKey, 'Unable to find symbol transition key'); | 432 assertTrue(!!switchKey, 'Unable to find symbol transition key'); |
432 // Switch to symbol keyset. | 433 // Switch to symbol keyset. |
433 mockTap(switchKey); | 434 mockTap(switchKey); |
434 } else { | 435 } else { |
435 var switchKey = findKey('~[<', 'row3'); | 436 var switchKey = findKey('~[<', 'row3'); |
436 assertTrue(!!switchKey, 'Unable to find more transition key'); | 437 assertTrue(!!switchKey, 'Unable to find more transition key'); |
437 // Switch to more keyset. | 438 // Switch to more keyset. |
438 mockTap(switchKey); | 439 mockTap(switchKey); |
439 } | 440 } |
440 } | 441 } |
OLD | NEW |