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

Unified Diff: chrome/test/data/extensions/api_test/automation/tests/desktop/initial_focus.js

Issue 2008773002: Begin using ChromeVox Next to read tab and window titles. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix a bunch of tests. Created 4 years, 7 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/test/data/extensions/api_test/automation/tests/desktop/initial_focus.js
diff --git a/chrome/test/data/extensions/api_test/automation/tests/desktop/initial_focus.js b/chrome/test/data/extensions/api_test/automation/tests/desktop/initial_focus.js
index cd467b237108e5deff2a6cbe8993db147126de93..6b3fce53770ebb068639dd05f9b94fbd6289705d 100644
--- a/chrome/test/data/extensions/api_test/automation/tests/desktop/initial_focus.js
+++ b/chrome/test/data/extensions/api_test/automation/tests/desktop/initial_focus.js
@@ -9,8 +9,8 @@ var allTests = [
chrome.automation.getDesktop(function(rootNode) {
chrome.tabs.create({url: url});
- rootNode.addEventListener('loadComplete', function(event) {
- if (event.target.url == url) {
+ rootNode.addEventListener('focus', function(event) {
+ if (event.target.root.url == url) {
chrome.automation.getFocus(function(focus) {
assertEq('textField', focus.role);
assertEq('abc', focus.name);
« no previous file with comments | « chrome/browser/resources/chromeos/chromevox/testing/common.js ('k') | ui/views/accessibility/ax_widget_obj_wrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698