Chromium Code Reviews| 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); |