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

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

Issue 2144593003: Merge dom node and node unit types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix 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 cd09156418bb3b4475637d896d2933db3f5f9509..b9a039ddfec201edfa49c613159f752c48b81339 100644
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/cursors_test.extjs
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/cursors_test.extjs
@@ -31,7 +31,7 @@ CursorsTest.prototype = {
window.CHARACTER = cursors.Unit.CHARACTER;
window.WORD = cursors.Unit.WORD;
window.LINE = cursors.Unit.LINE;
- window.DOM_NODE = cursors.Unit.DOM_NODE;
+ window.NODE = cursors.Unit.NODE;
window.BOUND = cursors.Movement.BOUND;
window.DIRECTIONAL = cursors.Movement.DIRECTIONAL;
},
@@ -281,11 +281,11 @@ TEST_F('CursorsTest', 'DontSplitOnNodeNavigation', function() {
var para = root.firstChild;
assertEquals('paragraph', para.role);
var cursor = new cursors.Cursor(para.firstChild, 0);
- cursor = cursor.move(DOM_NODE, DIRECTIONAL, FORWARD);
+ cursor = cursor.move(NODE, DIRECTIONAL, FORWARD);
assertEquals('staticText', cursor.node.role);
assertEquals('end', cursor.node.name);
- cursor = cursor.move(DOM_NODE, DIRECTIONAL, BACKWARD);
+ cursor = cursor.move(NODE, DIRECTIONAL, BACKWARD);
assertEquals('staticText', cursor.node.role);
assertEquals('start diff line', cursor.node.name);
@@ -303,11 +303,11 @@ TEST_F('CursorsTest', 'WrappingCursors', function() {
var cursor = new cursors.WrappingCursor(first, -1);
// Wrap from first node to last node.
- cursor = cursor.move(DOM_NODE, DIRECTIONAL, BACKWARD);
+ cursor = cursor.move(NODE, DIRECTIONAL, BACKWARD);
assertEquals(last, cursor.node);
// Wrap from last node to first node.
- cursor = cursor.move(DOM_NODE, DIRECTIONAL, FORWARD);
+ cursor = cursor.move(NODE, DIRECTIONAL, FORWARD);
assertEquals(first, cursor.node);
});
});

Powered by Google App Engine
This is Rietveld 408576698