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() { ...@@ -200,26 +200,20 @@ testcase.createFolderDownloads = function() {
testcase.createFolderNestedDownloads = function() { testcase.createFolderNestedDownloads = function() {
let appId; let appId;
const promise = const promise = new Promise(function(resolve) {
new Promise(function(resolve) { setupAndWaitUntilReady(
setupAndWaitUntilReady( null, RootPath.DOWNLOADS, resolve, BASIC_LOCAL_ENTRY_SET, []);
null, RootPath.DOWNLOADS, resolve, BASIC_LOCAL_ENTRY_SET, []); }).then(function(results) {
}) appId = results.windowId;
.then(function(results) { return expandRoot(appId, TREEITEM_DOWNLOADS);
appId = results.windowId; }).then(function() {
return expandRoot(appId, TREEITEM_DOWNLOADS); return remoteCall.navigateWithDirectoryTree(
}) appId, '/photos', 'My files/Downloads');
.then(function() { }).then(function() {
return remoteCall.navigateWithDirectoryTree( return remoteCall.waitForFiles(appId, [], {ignoreLastModifiedTime: true});
appId, '/photos', 'My files/Downloads'); }).then(function() {
}) return createNewFolder(appId, [], TREEITEM_DOWNLOADS);
.then(function() { });
return remoteCall.waitForFiles(
appId, [], {ignoreLastModifiedTime: true});
})
.then(function() {
return createNewFolder(appId, [], TREEITEM_DOWNLOADS);
});
testPromise(promise); 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