| Index: chrome/test/data/extensions/api_test/automation/tests/tabs_automation_boolean/common.js
|
| diff --git a/chrome/test/data/extensions/api_test/automation/tests/tabs_automation_boolean/common.js b/chrome/test/data/extensions/api_test/automation/tests/tabs_automation_boolean/common.js
|
| index 07f98d0603202fcd6aa72d3db91be72531632def..8d77c3d902efa7b5b0ef191788f13c5d4f0d68fb 100644
|
| --- a/chrome/test/data/extensions/api_test/automation/tests/tabs_automation_boolean/common.js
|
| +++ b/chrome/test/data/extensions/api_test/automation/tests/tabs_automation_boolean/common.js
|
| @@ -17,10 +17,15 @@ function setUpAndRunTests(allTests) {
|
| function gotTree(returnedRootNode) {
|
| rootNode = returnedRootNode;
|
| if (rootNode.attributes.docLoaded) {
|
| + console.log('In getTree() callback: ' +
|
| + 'docLoaded attr already true; running tests');
|
| chrome.test.runTests(allTests);
|
| return;
|
| }
|
| + console.log('In getTree() callback: ' +
|
| + 'docLoaded false; waiting for loadComplete');
|
| rootNode.addEventListener('loadComplete', function() {
|
| + console.log('loadComplete received; running tests.');
|
| chrome.test.runTests(allTests);
|
| });
|
| }
|
|
|