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

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

Issue 259603002: Add touch and basic longpress typing tests for the IME keyboard. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 2014 The Chromium Authors. All rights reserved. 2 * Copyright 2014 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 * Tests typing in the lowecase keyset. 8 * Tests typing in the lowercase keyset.
9 */ 9 */
10 function testLowercaseKeyset() { 10 function testLowercaseKeyset() {
11 // Mouse events.
bshe 2014/04/24 18:36:25 We probably dont need to test the same case 5 time
rsadam 2014/04/24 21:23:25 Done.
11 mockMouseType('l'); 12 mockMouseType('l');
12 mockMouseType('p'); 13 mockMouseType('p');
13 mockMouseType('e'); 14 mockMouseType('e');
14 mockMouseType('f'); 15 mockMouseType('f');
16 mockTouchType('e');
17
18 // Touch events.
19 mockTouchType('l');
20 mockTouchType('p');
21 mockTouchType('e');
22 mockTouchType('f');
23 mockTouchType('e');
15 } 24 }
25
26 /**
27 * Tests longpress on the keyboard.
28 */
29 function testLongpress() {
30 // TODO(rsadam@): Add support for mock longpressing the non-default selection.
31 mockLongpress('e', ['e', 'E'], 'e');
32 mockLongpress('a', ['a', 'A'], 'a');
33 mockLongpress('b', ['b', 'B'], 'b');
34 mockLongpress('c', ['c', 'C'], 'c');
35 // TODO(rsadam@): Test cancelling longpress.
36 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698