Index: chrome/test/data/extensions/api_test/automation/sanity_check/test.js |
diff --git a/chrome/test/data/extensions/api_test/automation/sanity_check/test.js b/chrome/test/data/extensions/api_test/automation/sanity_check/test.js |
index 3cf6d289d6d869d1348e1aad1a2d765e3b093d78..be3eadf045d2789516f2ec1bad019f73947aeee9 100644 |
--- a/chrome/test/data/extensions/api_test/automation/sanity_check/test.js |
+++ b/chrome/test/data/extensions/api_test/automation/sanity_check/test.js |
@@ -94,6 +94,22 @@ var allTests = [ |
}); |
}); |
}); |
+ }, |
+ function testSimpleAction() { |
+ function makeAssertions(tree) { |
+ var okButton = tree.root.firstChild().firstChild(); |
+ okButton.addEventListener('focus', function() { |
+ chrome.test.succeed(); |
+ }, true); |
+ okButton.focus(); |
+ } |
+ chrome.tabs.create({url: 'test.html'}); |
+ chrome.automation.getTree(function(tree) { |
+ tree.root.addEventListener('load_complete', |
+ function() { |
+ makeAssertions(tree); |
+ }, true); |
+ }); |
} |
]; |