OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Include test fixture. | 5 // Include test fixture. |
6 GEN_INCLUDE(['../testing/chromevox_unittest_base.js']); | 6 GEN_INCLUDE(['../testing/chromevox_unittest_base.js']); |
7 | 7 |
8 /** | 8 /** |
9 * Test fixture. | 9 * Test fixture. |
10 * @constructor | 10 * @constructor |
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
436 assertTrue(forwardSequence.cvoxModifier); | 436 assertTrue(forwardSequence.cvoxModifier); |
437 assertEqualsJSON(forwardSequence.keys.keyCode, [40]); | 437 assertEqualsJSON(forwardSequence.keys.keyCode, [40]); |
438 | 438 |
439 var ctrlSequence = cvox.KeySequence.deserialize({'cvoxModifier': false, | 439 var ctrlSequence = cvox.KeySequence.deserialize({'cvoxModifier': false, |
440 'stickyMode': true, 'prefixKey': false, 'keys': {'ctrlKey': [true], | 440 'stickyMode': true, 'prefixKey': false, 'keys': {'ctrlKey': [true], |
441 'searchKeyHeld': [false], 'altKey': [false], 'altGraphKey': [false], | 441 'searchKeyHeld': [false], 'altKey': [false], 'altGraphKey': [false], |
442 'shiftKey': [false], 'metaKey': [false], 'keyCode': [17]}}); | 442 'shiftKey': [false], 'metaKey': [false], 'keyCode': [17]}}); |
443 assertEqualsJSON(ctrlSequence.keys.ctrlKey, [true]); | 443 assertEqualsJSON(ctrlSequence.keys.ctrlKey, [true]); |
444 assertEqualsJSON(ctrlSequence.keys.keyCode, [17]); | 444 assertEqualsJSON(ctrlSequence.keys.keyCode, [17]); |
445 }); | 445 }); |
OLD | NEW |