Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(108)

Unified Diff: ui/file_manager/integration_tests/gallery/test_util.js

Issue 921043004: [Gallery app] Make the background page use BackgroundBase class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/file_manager/gallery/manifest.json ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/file_manager/integration_tests/gallery/test_util.js
diff --git a/ui/file_manager/integration_tests/gallery/test_util.js b/ui/file_manager/integration_tests/gallery/test_util.js
index 6e41b90385d927fc52276001483ccf007adefb45..685df612cc654b5799ea81882b6358bff3ff1301 100644
--- a/ui/file_manager/integration_tests/gallery/test_util.js
+++ b/ui/file_manager/integration_tests/gallery/test_util.js
@@ -119,10 +119,13 @@ function launchWithTestEntries(
selectedEntries.map(function(entry) { return entry.nameText; }));
});
- return launch(entriesPromise).then(function() {
- var launchedPromise = Promise.all([appWindowPromise, entriesPromise]);
- return launchedPromise.then(function(results) {
- return {appWindow: results[0], entries: results[1]};
+ return entriesPromise.then(function(entries) {
+ return window.initializePromise.then(function() {
+ var urls = util.entriesToURLs(entries);
+ var launchedPromise = openGalleryWindow(urls, false);
+ return launchedPromise.then(function(appWindow) {
+ return {appWindow: appWindow, entries: entries};
+ });
});
});
}
« no previous file with comments | « ui/file_manager/gallery/manifest.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698