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 * Class for testing keyset transitions resulting from use of the left or right | 8 * Class for testing keyset transitions resulting from use of the left or right |
9 * shift key. Keyset transitions are asynchronous, and each test needs to be | 9 * shift key. Keyset transitions are asynchronous, and each test needs to be |
10 * broken into subtasks in order to synchronize with keyset updates. | 10 * broken into subtasks in order to synchronize with keyset updates. |
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 * Tests that pressing the hide keyboard key calls the appropriate hide keyboard | 312 * Tests that pressing the hide keyboard key calls the appropriate hide keyboard |
313 * API. The test is run asynchronously since the keyboard loads keysets | 313 * API. The test is run asynchronously since the keyboard loads keysets |
314 * dynamically. | 314 * dynamically. |
315 */ | 315 */ |
316 function testHideKeyboard(testDoneCallback) { | 316 function testHideKeyboard(testDoneCallback) { |
317 var runTest = function() { | 317 var runTest = function() { |
318 var hideKey = $('keyboard').querySelector('kb-hide-keyboard-key'); | 318 var hideKey = $('keyboard').querySelector('kb-hide-keyboard-key'); |
319 assertTrue(!!hideKey, 'Unable to find key'); | 319 assertTrue(!!hideKey, 'Unable to find key'); |
320 | 320 |
321 chrome.virtualKeyboardPrivate.hideKeyboard.addExpectation(); | 321 chrome.virtualKeyboardPrivate.hideKeyboard.addExpectation(); |
| 322 chrome.virtualKeyboardPrivate.lockKeyboard.addExpectation(false); |
322 | 323 |
323 hideKey.down(); | 324 hideKey.down(); |
324 hideKey.up(); | 325 hideKey.up(); |
325 }; | 326 }; |
326 onKeyboardReady('testHideKeyboard', runTest, testDoneCallback); | 327 onKeyboardReady('testHideKeyboard', runTest, testDoneCallback); |
327 } | 328 } |
OLD | NEW |