Chromium Code Reviews| 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(); |
|
aboxhall
2014/04/01 17:49:51
This suggests to me that we should spec out gettin
David Tseng
2014/04/01 21:27:15
I was looking for the equivalent of 'getElementByI
aboxhall
2014/04/01 21:39:52
Let's chat about this. I spent some time chatting
|
| + okButton.addEventListener('focus', function() { |
| + chrome.test.succeed(); |
| + }, true); |
| + okButton.focus(); |
| + } |
| + chrome.tabs.create({url: 'test.html'}); |
|
aboxhall
2014/04/01 17:49:51
Can we use chrome.tabs.update to be consistent wit
David Tseng
2014/04/01 21:27:15
I'd prefer to leave this as is.
I didn't use upda
aboxhall
2014/04/01 21:39:52
I see, makes sense.
|
| + chrome.automation.getTree(function(tree) { |
| + tree.root.addEventListener('load_complete', |
| + function() { |
| + makeAssertions(tree); |
| + }, true); |
| + }); |
| } |
| ]; |