| Index: chrome/browser/resources/file_manager/js/test_util.js
|
| diff --git a/chrome/browser/resources/file_manager/js/test_util.js b/chrome/browser/resources/file_manager/js/test_util.js
|
| index f083bb9dd0a09d0f6438bbfed309b7c886b8900d..1d686ab2e31f94eb37b58f0c16e7eaf661260c3f 100644
|
| --- a/chrome/browser/resources/file_manager/js/test_util.js
|
| +++ b/chrome/browser/resources/file_manager/js/test_util.js
|
| @@ -27,7 +27,7 @@ test.util.TESTING_EXTENSION_ID = 'oobinhbdbiehknkpbpejbbpdbkdjmoco';
|
| * App ID.
|
| */
|
| test.util.openMainWindow = function(path, callback) {
|
| - var appId = launchFileManager({defaultPath: path});
|
| + var appId;
|
| function helper() {
|
| if (appWindows[appId]) {
|
| var contentWindow = appWindows[appId].contentWindow;
|
| @@ -39,7 +39,13 @@ test.util.openMainWindow = function(path, callback) {
|
| }
|
| window.setTimeout(helper, 50);
|
| }
|
| - helper();
|
| + launchFileManager({defaultPath: path},
|
| + undefined, // opt_type
|
| + undefined, // opt_id
|
| + function(id) {
|
| + appId = id;
|
| + helper();
|
| + });
|
| };
|
|
|
| /**
|
|
|