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

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

Issue 2273373002: Ensure focus() gets called when navigating to text fields (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
« no previous file with comments | « chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/chromeos/chromevox/cvox2/background/background_test.extjs
diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/background_test.extjs b/chrome/browser/resources/chromeos/chromevox/cvox2/background/background_test.extjs
index 8f9dd358d89566eef2a5ae599db8804ef6a18c1a..1c1f3202d3ff06cf3aa30a79950ee56320abfb57 100644
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/background_test.extjs
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/background_test.extjs
@@ -1154,3 +1154,17 @@ TEST_F('BackgroundTest', 'EditableNavigation', function() {
.replay();
});
});
+
+TEST_F('BackgroundTest', 'NavigationMovesFocus', function() {
+ this.runWithLoadedTree(function(root) {/*!
+ <p>start</p>
+ <input type="text"></input>
+ */}, function(root) {
+ this.listenOnce(root, 'focus', function(e) {
+ var focus = ChromeVoxState.instance.currentRange.start.node;
+ assertEquals(RoleType.textField, focus.role);
+ assertTrue(focus.state.focused);
+ });
+ doCmd('nextEditText')();
+ });
+});
« no previous file with comments | « chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698