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

Unified Diff: chrome/test/data/extensions/api_test/automation/tests/tabs/location.js

Issue 595413002: Draw an accessibility focus ring around the focused object in ChromeVox Next. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix automation browser test Created 6 years, 3 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/ui/ash/accessibility/automation_manager_ash.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/extensions/api_test/automation/tests/tabs/location.js
diff --git a/chrome/test/data/extensions/api_test/automation/tests/tabs/location.js b/chrome/test/data/extensions/api_test/automation/tests/tabs/location.js
index 97cb461683792936551986944d8491c1cd2c700d..fdeac6c7270556a0867d9adafbd515f9bfd27ef2 100644
--- a/chrome/test/data/extensions/api_test/automation/tests/tabs/location.js
+++ b/chrome/test/data/extensions/api_test/automation/tests/tabs/location.js
@@ -7,8 +7,12 @@ var allTests = [
function assertOkButtonLocation(event) {
var okButton = rootNode.firstChild().firstChild();
assertTrue('location' in okButton);
- assertEq({left:100, top: 200, width: 300, height: 400},
- okButton.location);
+
+ // We can't assert the left and top positions because they're
+ // returned in global screen coordinates. Just check the width and
+ // height.
+ assertEq(300, okButton.location.width);
+ assertEq(400, okButton.location.height);
chrome.test.succeed();
};
« no previous file with comments | « chrome/browser/ui/ash/accessibility/automation_manager_ash.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698