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

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

Issue 273323002: Convert snakecase enum names to camelcase when stringified. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: final changes Created 6 years, 7 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 0a4afe63a181f4024882374a715953299deef79b..b391c97c4b4d66251cb7c184f1936b12241b8a0a 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
@@ -12,40 +12,40 @@ var RemoveUntestedStates = function(state) {
var allTests = [
function testSimplePage() {
- var title = tree.root.attributes['ax_attr_doc_title'];
+ var title = tree.root.attributes['docTitle'];
assertEq('Automation Tests', title);
RemoveUntestedStates(tree.root.state);
assertEq(
- {enabled: true, focusable: true, read_only: true},
+ {enabled: true, focusable: true, readOnly: true},
tree.root.state);
var children = tree.root.children();
assertEq(1, children.length);
var body = children[0];
- assertEq('body', body.attributes['ax_attr_html_tag']);
+ assertEq('body', body.attributes['htmlTag']);
RemoveUntestedStates(body.state);
- assertEq({enabled: true, read_only: true},
+ assertEq({enabled: true, readOnly: true},
body.state);
var contentChildren = body.children();
assertEq(3, contentChildren.length);
var okButton = contentChildren[0];
- assertEq('Ok', okButton.attributes['ax_attr_name']);
+ assertEq('Ok', okButton.attributes['name']);
RemoveUntestedStates(okButton.state);
- assertEq({enabled: true, focusable: true, read_only: true},
+ assertEq({enabled: true, focusable: true, readOnly: true},
okButton.state);
var userNameInput = contentChildren[1];
assertEq('Username',
- userNameInput.attributes['ax_attr_description']);
+ userNameInput.attributes['description']);
RemoveUntestedStates(userNameInput.state);
assertEq({enabled: true, focusable: true},
userNameInput.state);
var cancelButton = contentChildren[2];
assertEq('Cancel',
- cancelButton.attributes['ax_attr_name']);
+ cancelButton.attributes['name']);
RemoveUntestedStates(cancelButton.state);
- assertEq({enabled: true, focusable: true, read_only: true},
+ assertEq({enabled: true, focusable: true, readOnly: true},
cancelButton.state);
// Traversal.
« no previous file with comments | « chrome/test/data/extensions/api_test/automation/tests/tabs/location.js ('k') | tools/json_schema_compiler/cc_generator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698