Chromium Code Reviews| 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. | |
|
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 } | |
| OLD | NEW |