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

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

Issue 2650733002: Revert of Update json_schema_compiler to handle the Automation extension API (Closed)
Patch Set: 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/desktop/load_tabs.js
diff --git a/chrome/test/data/extensions/api_test/automation/tests/desktop/load_tabs.js b/chrome/test/data/extensions/api_test/automation/tests/desktop/load_tabs.js
index bd306e5775ebf19109822fac45e67f04dfbde292..6986a7ab7dac0f5b98f42e61faa0d8f26bbb7b51 100644
--- a/chrome/test/data/extensions/api_test/automation/tests/desktop/load_tabs.js
+++ b/chrome/test/data/extensions/api_test/automation/tests/desktop/load_tabs.js
@@ -6,7 +6,7 @@
function getAllWebViews() {
function findAllWebViews(node, nodes) {
- if (node.role == chrome.automation.RoleType.WEB_VIEW)
+ if (node.role == chrome.automation.RoleType.webView)
nodes.push(node);
var children = node.children;
@@ -29,9 +29,9 @@
assertEq(webViews[1], subroot.parent);
assertEq(subroot, subroot.parent.children[0]);
var button = subroot.firstChild.firstChild;
- assertEq(chrome.automation.RoleType.BUTTON, button.role);
+ assertEq(chrome.automation.RoleType.button, button.role);
var input = subroot.firstChild.lastChild.previousSibling;
- assertEq(chrome.automation.RoleType.TEXT_FIELD, input.role);
+ assertEq(chrome.automation.RoleType.textField, input.role);
chrome.test.succeed();
});
},
@@ -40,7 +40,7 @@
runWithDocument(html, function(subroot) {
var button = null;
- rootNode.addEventListener(chrome.automation.EventType.FOCUS,
+ rootNode.addEventListener(chrome.automation.EventType.focus,
function(evt) {
assertEq(button, evt.target);
chrome.test.succeed();

Powered by Google App Engine
This is Rietveld 408576698