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

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

Issue 304293002: Add human readable programmatic enum name/values to chrome.automation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Last feedback. 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/desktop/actions.js
diff --git a/chrome/test/data/extensions/api_test/automation/tests/desktop/actions.js b/chrome/test/data/extensions/api_test/automation/tests/desktop/actions.js
index fed349c78f9aab4c2baef701f731a10cc97b18f2..eb27ef45a25705b942c04ecd69c6836663a14e9c 100644
--- a/chrome/test/data/extensions/api_test/automation/tests/desktop/actions.js
+++ b/chrome/test/data/extensions/api_test/automation/tests/desktop/actions.js
@@ -9,7 +9,7 @@ var allTests = [
return node.role == 'textField';
});
assertTrue(!!firstTextField);
- firstTextField.addEventListener('focus', function(e) {
+ firstTextField.addEventListener(EventType.focus, function(e) {
chrome.test.succeed();
}, true);
firstTextField.doDefault();
@@ -21,7 +21,7 @@ var allTests = [
return node.role == 'button' && node.state.focusable;
});
assertTrue(!!firstFocusableNode);
- firstFocusableNode.addEventListener('focus', function(e) {
+ firstFocusableNode.addEventListener(EventType.focus, function(e) {
chrome.test.succeed();
}, true);
firstFocusableNode.focus();

Powered by Google App Engine
This is Rietveld 408576698