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

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
« no previous file with comments | « chrome/test/data/chromeos/virtual_keyboard/inputview/test_base.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
11 mockMouseType('l'); 12 mockMouseType('l');
12 mockMouseType('p'); 13 mockMouseType('p');
13 mockMouseType('e'); 14
14 mockMouseType('f'); 15 // Touch events.
16 mockTouchType('l');
17 mockTouchType('p');
15 } 18 }
19
20 /**
21 * Tests longpress on the keyboard.
22 */
23 function testLongpress() {
24 // TODO(rsadam@): Add support for mock longpressing the non-default selection.
25 mockLongpress('e', ['e', 'E'], 'e');
26 mockLongpress('a', ['a', 'A'], 'a');
27 // TODO(rsadam@): Test cancelling longpress.
28 }
OLDNEW
« no previous file with comments | « chrome/test/data/chromeos/virtual_keyboard/inputview/test_base.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698