| Index: chrome/browser/resources/chromeos/chromevox/cvox2/background/cursors_test.extjs
|
| diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/cursors_test.extjs b/chrome/browser/resources/chromeos/chromevox/cvox2/background/cursors_test.extjs
|
| index aafc9416274ec69a6d7f24caa1fcf4e2741db9a5..0f887de132fe4d3684787c580b08ecfd2e1ae352 100644
|
| --- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/cursors_test.extjs
|
| +++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/cursors_test.extjs
|
| @@ -381,16 +381,15 @@ TEST_F('CursorsTest', 'MultiLineOffsetSelection', function() {
|
| secondLineCursor = new cursors.Cursor(secondLine, 1);
|
| assertEquals(7, secondLineCursor.selectionIndex_);
|
|
|
| - // Now, try selecting via node offsets. This defaults to index 0 and not
|
| - // index in parent because Blink accessibility selection doesn't always
|
| - // work.
|
| + // Now, try selecting via node offsets.
|
| + // Slightly different than DOM selections (1-based index).
|
| var cursor = new cursors.Cursor(root.firstChild, -1);
|
| - assertEquals(root.firstChild, cursor.selectionNode_);
|
| - assertEquals(0, cursor.selectionIndex_);
|
| + assertEquals(root, cursor.selectionNode_);
|
| + assertEquals(1, cursor.selectionIndex_);
|
|
|
| cursor = new cursors.Cursor(root.firstChild.nextSibling, -1);
|
| - assertEquals(root.firstChild.nextSibling, cursor.selectionNode_);
|
| - assertEquals(0, cursor.selectionIndex_);
|
| + assertEquals(root, cursor.selectionNode_);
|
| + assertEquals(2, cursor.selectionIndex_);
|
| });
|
| });
|
|
|
|
|