| Index: chrome/test/data/extensions/api_test/automation/tests/desktop/common.js
|
| diff --git a/chrome/test/data/extensions/api_test/automation/tests/desktop/common.js b/chrome/test/data/extensions/api_test/automation/tests/desktop/common.js
|
| index a6d3d9afb09ae040e9b16185b7e4a3c46e37654d..406c75c54f1298a00771d6eb398be10598537ff5 100644
|
| --- a/chrome/test/data/extensions/api_test/automation/tests/desktop/common.js
|
| +++ b/chrome/test/data/extensions/api_test/automation/tests/desktop/common.js
|
| @@ -42,14 +42,14 @@ function runWithDocument(docString, callback) {
|
|
|
| function setupAndRunTests(allTests, opt_docString) {
|
| function runTestInternal() {
|
| - chrome.automation.getDesktop(function(rootNodeArg) {
|
| - rootNode = rootNodeArg;
|
| - chrome.test.runTests(allTests);
|
| - });
|
| + chrome.test.runTests(allTests);
|
| }
|
|
|
| - if (opt_docString)
|
| - runWithDocument(opt_docString, runTestInternal);
|
| - else
|
| - runTestInternal();
|
| + chrome.automation.getDesktop(function(rootNodeArg) {
|
| + rootNode = rootNodeArg;
|
| + if (opt_docString)
|
| + runWithDocument(opt_docString, runTestInternal);
|
| + else
|
| + runTestInternal();
|
| + });
|
| }
|
|
|