Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2421)

Unified Diff: chrome/browser/resources/chromeos/chromevox/cvox2/background/cursors_test.extjs

Issue 2164813003: Fix visible position calculation in accessible setSelection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert ChromeVox workaround and update test Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 931960551ef7b4d2afe8224f41a3e25a91da6a25..0fbcb7d2183701b1c8999e245e09dd22300b1023 100644
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/cursors_test.extjs
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/cursors_test.extjs
@@ -412,12 +412,12 @@ TEST_F('CursorsTest', 'InlineElementOffset', function() {
var cur = new cursors.Cursor(ofSelectionNode, 0);
assertEquals('of selection', cur.selectionNode_.name);
assertEquals(RoleType.staticText, cur.selectionNode_.role);
- assertEquals(13, cur.selectionIndex_);
+ assertEquals(0, cur.selectionIndex_);
var curIntoO = new cursors.Cursor(ofSelectionNode, 1);
assertEquals('of selection', curIntoO.selectionNode_.name);
assertEquals(RoleType.staticText, curIntoO.selectionNode_.role);
- assertEquals(14, curIntoO.selectionIndex_);
+ assertEquals(1, curIntoO.selectionIndex_);
var oRange = new cursors.Range(cur, curIntoO);
oRange.select();

Powered by Google App Engine
This is Rietveld 408576698