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

Unified Diff: chrome/test/data/extensions/api_test/automation/tests/tabs/events.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/events.js
diff --git a/chrome/test/data/extensions/api_test/automation/tests/tabs/events.js b/chrome/test/data/extensions/api_test/automation/tests/tabs/events.js
index 2dddd620f3932b0523699cd5881ee1836ed97a7c..4074dcc00911ddf1c86b4e12043d0711f0c773b7 100644
--- a/chrome/test/data/extensions/api_test/automation/tests/tabs/events.js
+++ b/chrome/test/data/extensions/api_test/automation/tests/tabs/events.js
@@ -5,7 +5,7 @@
var allTests = [
function testEventListenerTarget() {
var cancelButton = tree.root.firstChild().children()[2];
- assertEq('Cancel', cancelButton.attributes['ax_attr_name']);
+ assertEq('Cancel', cancelButton.attributes['name']);
cancelButton.addEventListener('focus', function onFocusTarget(event) {
window.setTimeout(function() {
cancelButton.removeEventListener('focus', onFocusTarget);
@@ -16,7 +16,7 @@ var allTests = [
},
function testEventListenerBubble() {
var cancelButton = tree.root.firstChild().children()[2];
- assertEq('Cancel', cancelButton.attributes['ax_attr_name']);
+ assertEq('Cancel', cancelButton.attributes['name']);
var cancelButtonGotEvent = false;
cancelButton.addEventListener('focus', function onFocusBubble(event) {
cancelButtonGotEvent = true;
@@ -33,7 +33,7 @@ var allTests = [
},
function testStopPropagation() {
var cancelButton = tree.root.firstChild().children()[2];
- assertEq('Cancel', cancelButton.attributes['ax_attr_name']);
+ assertEq('Cancel', cancelButton.attributes['name']);
function onFocusStopPropRoot(event) {
tree.root.removeEventListener('focus', onFocusStopPropRoot);
chrome.test.fail("Focus event was propagated to root");
@@ -51,7 +51,7 @@ var allTests = [
},
function testEventListenerCapture() {
var cancelButton = tree.root.firstChild().children()[2];
- assertEq('Cancel', cancelButton.attributes['ax_attr_name']);
+ assertEq('Cancel', cancelButton.attributes['name']);
var cancelButtonGotEvent = false;
function onFocusCapture(event) {
cancelButtonGotEvent = true;

Powered by Google App Engine
This is Rietveld 408576698