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

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

Issue 2439203003: Reland of Accessibility: Ignore all anonymous blocks (Closed)
Patch Set: Rebased. Created 4 years, 2 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/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 0c583fa826ce9e5e47f50cd0dc6b76f7c107dafd..a4e48a51153004add7dbfb4222e6f5198e41cb22 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
@@ -5,7 +5,8 @@
var allTests = [
function testLocation() {
function assertOkButtonLocation(event) {
- var okButton = rootNode.firstChild.firstChild;
+ var okButton = rootNode.find({ role: RoleType.button,
+ attributes: { name: 'Ok' }});
assertTrue('location' in okButton);
// We can't assert the left and top positions because they're

Powered by Google App Engine
This is Rietveld 408576698