OLD | NEW |
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 } |
OLD | NEW |