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

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

Issue 2650733002: Revert of Update json_schema_compiler to handle the Automation extension API (Closed)
Patch Set: Created 3 years, 11 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 fd8243cea91bd8202c1642b4ed6809c2384b44be..f83ea09de9ab2f02aa72f60111276c69caff0cde 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 @@
<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 @@
// This is the link's static text.
var testNode = root.lastChild.lastChild.previousSibling.firstChild;
- assertEquals(RoleType.STATIC_TEXT, testNode.role);
+ assertEquals(RoleType.staticText, 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.STATIC_TEXT, cur.selectionNode_.role);
+ assertEquals(RoleType.staticText, cur.selectionNode_.role);
assertEquals(0, cur.selectionIndex_);
var curIntoO = new cursors.Cursor(ofSelectionNode, 1);
assertEquals('of selection', curIntoO.selectionNode_.name);
- assertEquals(RoleType.STATIC_TEXT, curIntoO.selectionNode_.role);
+ assertEquals(RoleType.staticText, curIntoO.selectionNode_.role);
assertEquals(1, curIntoO.selectionIndex_);
var oRange = new cursors.Range(cur, curIntoO);
@@ -436,11 +436,11 @@
<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.STATIC_TEXT, staticText.role);
+ assertEquals(RoleType.staticText, staticText.role);
var inlineTextBox = staticText.firstChild;
- assertEquals(RoleType.INLINE_TEXT_BOX, inlineTextBox.role);
+ assertEquals(RoleType.inlineTextBox, inlineTextBox.role);
var rootRange = cursors.Range.fromNode(root);
var regionRange = cursors.Range.fromNode(region);

Powered by Google App Engine
This is Rietveld 408576698