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