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

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

Issue 1435113003: Make use of new AX name calc in Chromium. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix issue with ariaTextAlternative Created 5 years, 1 month 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 0044aee10336c3cbc14e84c949ebcf0f7c26850e..a50f159acf76f5b7ca7a8ef45037b55e7ef35ac2 100644
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/cursors_test.extjs
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/cursors_test.extjs
@@ -88,7 +88,7 @@ CursorsTest.prototype = {
if (goog.isDef(expected.index))
assertEquals(expected.index, cursor.index);
if (goog.isDef(expected.value))
- assertEquals(expected.value, cursor.node.value);
+ assertEquals(expected.value, cursor.node.name);
},
/**
@@ -280,16 +280,16 @@ TEST_F('CursorsTest', 'DontSplitOnNodeNavigation', function() {
var cursor = new cursors.Cursor(para, 0);
cursor = cursor.move(DOM_NODE, DIRECTIONAL, FORWARD);
assertEquals('staticText', cursor.node.role);
- assertEquals('end', cursor.node.value);
+ assertEquals('end', cursor.node.name);
cursor = cursor.move(DOM_NODE, DIRECTIONAL, BACKWARD);
assertEquals('staticText', cursor.node.role);
- assertEquals('start diff line', cursor.node.value);
+ assertEquals('start diff line', cursor.node.name);
assertEquals('inlineTextBox', cursor.node.firstChild.role);
- assertEquals('start ', cursor.node.firstChild.value);
- assertEquals('diff ', cursor.node.firstChild.nextSibling.value);
- assertEquals('line', cursor.node.lastChild.value);
+ assertEquals('start ', cursor.node.firstChild.name);
+ assertEquals('diff ', cursor.node.firstChild.nextSibling.name);
+ assertEquals('line', cursor.node.lastChild.name);
});
});

Powered by Google App Engine
This is Rietveld 408576698