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

Side by Side Diff: chrome/test/data/chromeos/virtual_keyboard/control_keys_test.js

Issue 98073012: Add unit test for lock and unlock virtual keyboard feature (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698