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 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
392 selectionSpan = s.getSpanInstanceOf(cvox.BrailleUtil.ValueSelectionSpan); | 392 selectionSpan = s.getSpanInstanceOf(cvox.BrailleUtil.ValueSelectionSpan); |
393 assertEquals(5, s.getSpanStart(selectionSpan)); | 393 assertEquals(5, s.getSpanStart(selectionSpan)); |
394 assertEquals(5, s.getSpanEnd(selectionSpan)); | 394 assertEquals(5, s.getSpanEnd(selectionSpan)); |
395 | 395 |
396 // All of the value selected selected with reversed start and end. | 396 // All of the value selected selected with reversed start and end. |
397 s = cvox.BrailleUtil.createValue('value', 5, 0); | 397 s = cvox.BrailleUtil.createValue('value', 5, 0); |
398 selectionSpan = s.getSpanInstanceOf(cvox.BrailleUtil.ValueSelectionSpan); | 398 selectionSpan = s.getSpanInstanceOf(cvox.BrailleUtil.ValueSelectionSpan); |
399 assertEquals(0, s.getSpanStart(selectionSpan)); | 399 assertEquals(0, s.getSpanStart(selectionSpan)); |
400 assertEquals(5, s.getSpanEnd(selectionSpan)); | 400 assertEquals(5, s.getSpanEnd(selectionSpan)); |
401 }); | 401 }); |
OLD | NEW |