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

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

Issue 2649373002: Re-land: Update json_schema_compiler to handle the Automation extension API (Closed)
Patch Set: Fix presubmit 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/sanity_check.js
diff --git a/chrome/test/data/extensions/api_test/automation/tests/tabs/sanity_check.js b/chrome/test/data/extensions/api_test/automation/tests/tabs/sanity_check.js
index 3ff91b08f310da7a0cb3cd454b629c8d623aebf5..e3e986143f7b5509965fc9dd23bfd6834a695fcb 100644
--- a/chrome/test/data/extensions/api_test/automation/tests/tabs/sanity_check.js
+++ b/chrome/test/data/extensions/api_test/automation/tests/tabs/sanity_check.js
@@ -6,9 +6,9 @@
// accessibility), since they can be inconsistent depending on the environment.
var RemoveUntestedStates = function(state) {
var result = JSON.parse(JSON.stringify(state));
- delete result[StateType.horizontal];
- delete result[StateType.hovered];
- delete result[StateType.vertical];
+ delete result[StateType.HORIZONTAL];
+ delete result[StateType.HOVERED];
+ delete result[StateType.VERTICAL];
return result;
};
@@ -23,10 +23,9 @@ var allTests = [
state);
var children = rootNode.children;
- assertEq(RoleType.rootWebArea, rootNode.role);
+ assertEq(RoleType.ROOT_WEB_AREA, rootNode.role);
assertEq(1, children.length);
var body = children[0];
- assertEq('body', body.htmlTag);
state = RemoveUntestedStates(body.state);
assertEq({readOnly: true}, state);

Powered by Google App Engine
This is Rietveld 408576698