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

Unified Diff: chrome/test/data/chromeos/file_manager/cws_container_mock/main.js

Issue 1061133005: Wait for 'after_install' from widget before closing SuggestAppsDialog (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@break_up_suggest_apps_dialog
Patch Set: rebase Created 5 years, 8 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 | « no previous file | ui/file_manager/file_manager/foreground/js/app_installer.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/chromeos/file_manager/cws_container_mock/main.js
diff --git a/chrome/test/data/chromeos/file_manager/cws_container_mock/main.js b/chrome/test/data/chromeos/file_manager/cws_container_mock/main.js
index e4dd9f39e7015993d6509ee73acb4ef62ff2e474..4b2dfe1a2fa3397397901b722f7b61d1ba8ad481 100644
--- a/chrome/test/data/chromeos/file_manager/cws_container_mock/main.js
+++ b/chrome/test/data/chromeos/file_manager/cws_container_mock/main.js
@@ -18,7 +18,10 @@ var cwsContainerMock = {};
switch (data['message']) {
case 'initialize':
- cwsContainerMock.onInitialize(source);
+ cwsContainerMock.onInitialize();
+ break;
+ case 'install_success':
+ cwsContainerMock.onInstallSuccess();
break;
};
}
@@ -28,6 +31,14 @@ var cwsContainerMock = {};
source.postMessage({message: 'widget_loaded'}, origin);
};
+ cwsContainerMock.onInstallSuccess = function() {
+ if (source && origin)
+ source.postMessage({
+ message: 'after_install',
+ item_id: DUMMY_ITEM_ID
+ }, origin);
+ };
+
cwsContainerMock.onInstallButton = function() {
if (source && origin) {
source.postMessage(
« no previous file with comments | « no previous file | ui/file_manager/file_manager/foreground/js/app_installer.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698