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

Unified Diff: chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_util_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/automation_util_test.extjs
diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_util_test.extjs b/chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_util_test.extjs
index 74168c30169d7a3bb0463a572967c8dc7125b053..7461eca403c375385e2ab653c65b61e00c18ad40 100644
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_util_test.extjs
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_util_test.extjs
@@ -123,9 +123,11 @@ TEST_F('AutomationUtilE2ETest', 'GetDirection', function() {
// Same node.
assertEquals(Dir.FORWARD, AutomationUtil.getDirection(left, right));
- // Ancestor.
+ // Ancestry.
left = left.firstChild;
- assertEquals(Dir.FORWARD, AutomationUtil.getDirection(left, right));
+ // Upward movement is backward (in dfs).
+ assertEquals(Dir.BACKWARD, AutomationUtil.getDirection(left, right));
+ // Downward movement is forward.
assertEquals(Dir.FORWARD, AutomationUtil.getDirection(right, left));
// Ordered.

Powered by Google App Engine
This is Rietveld 408576698