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

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

Issue 1435113003: Make use of new AX name calc in Chromium. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix issue with ariaTextAlternative Created 5 years, 1 month 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/find.js
diff --git a/chrome/test/data/extensions/api_test/automation/tests/tabs/find.js b/chrome/test/data/extensions/api_test/automation/tests/tabs/find.js
index f1712062f092715d019e395293b0030919fb263f..07b1f618b8c9596eec1cc42ae92580b872999cf3 100644
--- a/chrome/test/data/extensions/api_test/automation/tests/tabs/find.js
+++ b/chrome/test/data/extensions/api_test/automation/tests/tabs/find.js
@@ -126,7 +126,7 @@ var allTests = [
assertEq(null, rootNode.find({ attributes: { name: 'ok' }}));
// Find by value attribute - regexp.
- var query = { attributes: { value: /relationship/ }};
+ var query = { attributes: { name: /relationship/ }};
assertEq(p2, rootNode.find(query).parent);
// Find by role and hierarchicalLevel attribute.
@@ -165,12 +165,12 @@ var allTests = [
var p2StaticText = p2.firstChild;
assertTrue(
p2StaticText.matches({ role: RoleType.staticText,
- attributes: { value: /relationship/ } }),
- 'p2StaticText should match value: /relationship/ (regex match)');
+ attributes: { name: /relationship/ } }),
+ 'p2StaticText should match name: /relationship/ (regex match)');
assertFalse(
p2StaticText.matches({ role: RoleType.staticText,
- attributes: { value: 'relationship' } }),
- 'p2 should not match value: \'relationship');
+ attributes: { name: 'relationship' } }),
+ 'p2 should not match name: \'relationship');
chrome.test.succeed();
}

Powered by Google App Engine
This is Rietveld 408576698