Commit 09a47c25 authored by Noel Gordon's avatar Noel Gordon Committed by Commit Bot

Reformat createFolderNestedDownloads test case

Reformat to be consistent with the other create_new_folder test cases.

Bug: None, no change in behavior.
Change-Id: I1a3bf2d7fa923b42149630e0da34c5a46865e9a7
Reviewed-on: https://chromium-review.googlesource.com/c/1321650
Commit-Queue: Noel Gordon <noel@chromium.org>
Reviewed-by: default avatarLuciano Pacheco <lucmult@chromium.org>
Cr-Commit-Position: refs/heads/master@{#605906}
parent 255540f5
......@@ -200,26 +200,20 @@ testcase.createFolderDownloads = function() {
testcase.createFolderNestedDownloads = function() {
let appId;
const promise =
new Promise(function(resolve) {
setupAndWaitUntilReady(
null, RootPath.DOWNLOADS, resolve, BASIC_LOCAL_ENTRY_SET, []);
})
.then(function(results) {
appId = results.windowId;
return expandRoot(appId, TREEITEM_DOWNLOADS);
})
.then(function() {
return remoteCall.navigateWithDirectoryTree(
appId, '/photos', 'My files/Downloads');
})
.then(function() {
return remoteCall.waitForFiles(
appId, [], {ignoreLastModifiedTime: true});
})
.then(function() {
return createNewFolder(appId, [], TREEITEM_DOWNLOADS);
});
const promise = new Promise(function(resolve) {
setupAndWaitUntilReady(
null, RootPath.DOWNLOADS, resolve, BASIC_LOCAL_ENTRY_SET, []);
}).then(function(results) {
appId = results.windowId;
return expandRoot(appId, TREEITEM_DOWNLOADS);
}).then(function() {
return remoteCall.navigateWithDirectoryTree(
appId, '/photos', 'My files/Downloads');
}).then(function() {
return remoteCall.waitForFiles(appId, [], {ignoreLastModifiedTime: true});
}).then(function() {
return createNewFolder(appId, [], TREEITEM_DOWNLOADS);
});
testPromise(promise);
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment