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

Unified Diff: chrome/test/data/extensions/api_test/webstore_private/app_install_bubble.js

Issue 7529011: Add a flag that lets the webstore show a different UI on app install. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ready for review Created 9 years, 5 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
Index: chrome/test/data/extensions/api_test/webstore_private/app_install_bubble.js
diff --git a/chrome/test/data/extensions/api_test/webstore_private/app_install_bubble.js b/chrome/test/data/extensions/api_test/webstore_private/app_install_bubble.js
new file mode 100644
index 0000000000000000000000000000000000000000..5f32a856620f2cdea1da2d20346da54f2ffa46d3
--- /dev/null
+++ b/chrome/test/data/extensions/api_test/webstore_private/app_install_bubble.js
@@ -0,0 +1,26 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+var tests = [
+ function appInstallBubble() {
+ // See things through all the way to a successful install.
+ listenOnce(chrome.management.onInstalled, callbackPass(function(info) {
+ assertEq(info.id, appId);
+ }));
+
+ var manifest = getManifest("app/manifest.json");
+ // Begin installing.
+ chrome.webstorePrivate.beginInstallWithManifest2(
+ {'id': appId,'manifest': manifest, 'appInstallBubble':true},
+ function(result) {
Matt Perry 2011/08/03 22:19:26 I think you want to wrap this callback in a callba
asargent_no_longer_on_chrome 2011/08/04 00:00:16 Good catch, done. (I also removed the assertNoLast
+ assertNoLastError();
+ assertEq(result, "");
+
+ // Now complete the installation.
+ chrome.webstorePrivate.completeInstall(appId, callbackPass());
+ });
+ }
+];
+
+runTests(tests);

Powered by Google App Engine
This is Rietveld 408576698