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

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

Issue 2601333002: Update json_schema_compiler to handle the Automation extension API (Closed)
Patch Set: Rebase Created 3 years, 11 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/attributes.js
diff --git a/chrome/test/data/extensions/api_test/automation/tests/tabs/attributes.js b/chrome/test/data/extensions/api_test/automation/tests/tabs/attributes.js
index 3f4e538c639c8036f3bc7dda8fbe4e83f6b775a1..5e464a579086044a20a8a4bad6bb821845ee2073 100644
--- a/chrome/test/data/extensions/api_test/automation/tests/tabs/attributes.js
+++ b/chrome/test/data/extensions/api_test/automation/tests/tabs/attributes.js
@@ -249,7 +249,15 @@ var allTests = [
assertTrue(editable !== undefined);
assertEq('text', editable.htmlAttributes.type);
chrome.test.succeed();
- }
+ },
+
+ function testNameFrom() {
+ var link = rootNode.find({ role: 'link' });
+ assertEq(chrome.automation.NameFromType.CONTENTS, link.nameFrom);
+ var textarea = rootNode.find({ attributes: { name: 'textarea' } });
+ assertEq(chrome.automation.NameFromType.ATTRIBUTE, textarea.nameFrom);
+ chrome.test.succeed();
+ },
];
setUpAndRunTests(allTests, 'attributes.html');

Powered by Google App Engine
This is Rietveld 408576698