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 f83ea09de9ab2f02aa72f60111276c69caff0cde..fd8243cea91bd8202c1642b4ed6809c2384b44be 100644 |
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/cursors_test.extjs |
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/cursors_test.extjs |
@@ -331,8 +331,8 @@ TEST_F('CursorsTest', 'DISABLED_SingleDocSelection', function() { |
<p>end of text</p> |
*/}, |
function(root) { |
- var link = root.find({role: RoleType.link}); |
- var p1 = root.find({role: RoleType.paragraph}); |
+ var link = root.find({role: RoleType.LINK}); |
+ var p1 = root.find({role: RoleType.PARAGRAPH}); |
var p2 = p1.nextSibling; |
var singleSel = new cursors.Range( |
@@ -412,18 +412,18 @@ TEST_F('CursorsTest', 'InlineElementOffset', function() { |
// This is the link's static text. |
var testNode = root.lastChild.lastChild.previousSibling.firstChild; |
- assertEquals(RoleType.staticText, testNode.role); |
+ assertEquals(RoleType.STATIC_TEXT, testNode.role); |
assertEquals('test', testNode.name); |
var ofSelectionNode = root.lastChild.lastChild; |
var cur = new cursors.Cursor(ofSelectionNode, 0); |
assertEquals('of selection', cur.selectionNode_.name); |
- assertEquals(RoleType.staticText, cur.selectionNode_.role); |
+ assertEquals(RoleType.STATIC_TEXT, cur.selectionNode_.role); |
assertEquals(0, cur.selectionIndex_); |
var curIntoO = new cursors.Cursor(ofSelectionNode, 1); |
assertEquals('of selection', curIntoO.selectionNode_.name); |
- assertEquals(RoleType.staticText, curIntoO.selectionNode_.role); |
+ assertEquals(RoleType.STATIC_TEXT, curIntoO.selectionNode_.role); |
assertEquals(1, curIntoO.selectionIndex_); |
var oRange = new cursors.Range(cur, curIntoO); |
@@ -436,11 +436,11 @@ TEST_F('CursorsTest', 'ContentEquality', function() { |
<div role="region">this is a test</button> |
*/}, function(root) { |
var region = root.firstChild; |
- assertEquals(RoleType.region, region.role); |
+ assertEquals(RoleType.REGION, region.role); |
var staticText = region.firstChild; |
- assertEquals(RoleType.staticText, staticText.role); |
+ assertEquals(RoleType.STATIC_TEXT, staticText.role); |
var inlineTextBox = staticText.firstChild; |
- assertEquals(RoleType.inlineTextBox, inlineTextBox.role); |
+ assertEquals(RoleType.INLINE_TEXT_BOX, inlineTextBox.role); |
var rootRange = cursors.Range.fromNode(root); |
var regionRange = cursors.Range.fromNode(region); |