| 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 assertEquals(13, ba.absEnd().index); | 88 assertEquals(13, ba.absEnd().index); |
| 89 | 89 |
| 90 var cd = new cvox.CursorSelection(c, d).collapse(); | 90 var cd = new cvox.CursorSelection(c, d).collapse(); |
| 91 assertEquals(5, cd.start.index); | 91 assertEquals(5, cd.start.index); |
| 92 assertEquals(6, cd.end.index); | 92 assertEquals(6, cd.end.index); |
| 93 | 93 |
| 94 var dc = new cvox.CursorSelection(d, c, true).collapse(); | 94 var dc = new cvox.CursorSelection(d, c, true).collapse(); |
| 95 assertEquals(7, dc.absStart().index); | 95 assertEquals(7, dc.absStart().index); |
| 96 assertEquals(8, dc.absEnd().index); | 96 assertEquals(8, dc.absEnd().index); |
| 97 }); | 97 }); |
| OLD | NEW |