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

Side by Side Diff: chrome/test/data/chromeos/virtual_keyboard/typing_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 * Tester for lonpress typing accents. 8 * Tester for lonpress typing accents.
9 */ 9 */
10 function LongPressTypingTester(layout) { 10 function LongPressTypingTester(layout) {
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 // Test composed swipe and flick. Should not have any output. 405 // Test composed swipe and flick. Should not have any output.
406 var move = chrome.virtualKeyboardPrivate.moveCursor; 406 var move = chrome.virtualKeyboardPrivate.moveCursor;
407 move.addExpectation(SwipeDirection.RIGHT, 407 move.addExpectation(SwipeDirection.RIGHT,
408 Modifier.CONTROL & Modifier.SHIFT); 408 Modifier.CONTROL & Modifier.SHIFT);
409 $('keyboard').down(mockEvent(0, 0, key)); 409 $('keyboard').down(mockEvent(0, 0, key));
410 $('keyboard').move(mockEvent(0, height, key)); 410 $('keyboard').move(mockEvent(0, height, key));
411 $('keyboard').move(mockEvent(width, height, key)); 411 $('keyboard').move(mockEvent(width, height, key));
412 $('keyboard').up(mockEvent(width, height, key)); 412 $('keyboard').up(mockEvent(width, height, key));
413 }; 413 };
414 onKeyboardReady('testSwipeFlick', runTest, testDoneCallback); 414 onKeyboardReady('testSwipeFlick', runTest, testDoneCallback);
415 } 415 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698