2 * Copyright (c) 2012 The Chromium Authors. All rights reserved. Use of this
3 * source code is governed by a BSD-style license that can be found in the
6 <script src="common.js"></script>
11 id: 'begfmnajjkbjdgmffnjaojchoncnmngg',
12 manifest: getManifest('bundle/app1.json'),
13 localizedName: 'app.1'
16 id: 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa', // Invalid CRX.
17 manifest: getManifest('bundle/app2.json'),
18 localizedName: 'app.2'
21 id: 'bmfoocgfinpmkmlbjhcbofejhkhlbchk', // Wrong manifest.
22 manifest: getManifest('bundle/extension2.json'),
23 localizedName: 'extension.1'
26 id: 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb', // No CRX, 404.
27 manifest: getManifest('bundle/extension2.json'),
28 localizedName: 'extension.2'
33 'begfmnajjkbjdgmffnjaojchoncnmngg'
37 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
38 'bmfoocgfinpmkmlbjhcbofejhkhlbchk',
39 'pkapffpjmiilhlhbibjhamlmdhfneidj'
43 function partialInstall() {
44 chrome.webstorePrivate.installBundle(
45 { localizedName: 'MyBundle' },
47 callbackPass(function() {
48 installed.forEach(function(id) {
51 callbackPass(function(result) { assertTrue(result); }));
53 failed.forEach(function(id) {
56 callbackPass(function(result) { assertFalse(result); }));
61 function allItemsFail() {
62 chrome.webstorePrivate.installBundle(
63 { localizedName: 'MyBundle' },
65 callbackPass(function() {
68 callbackPass(function(result) { assertFalse(result); }));
73 chrome.webstorePrivate.installBundle(
74 { localizedName: 'MyBundle' },
76 callbackFail("Invalid bundle"));