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,24 +200,18 @@ testcase.createFolderDownloads = function() { ...@@ -200,24 +200,18 @@ 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) {
.then(function(results) {
appId = results.windowId; appId = results.windowId;
return expandRoot(appId, TREEITEM_DOWNLOADS); return expandRoot(appId, TREEITEM_DOWNLOADS);
}) }).then(function() {
.then(function() {
return remoteCall.navigateWithDirectoryTree( return remoteCall.navigateWithDirectoryTree(
appId, '/photos', 'My files/Downloads'); appId, '/photos', 'My files/Downloads');
}) }).then(function() {
.then(function() { return remoteCall.waitForFiles(appId, [], {ignoreLastModifiedTime: true});
return remoteCall.waitForFiles( }).then(function() {
appId, [], {ignoreLastModifiedTime: true});
})
.then(function() {
return createNewFolder(appId, [], TREEITEM_DOWNLOADS); return createNewFolder(appId, [], TREEITEM_DOWNLOADS);
}); });
......
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