Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / chrome / test / data / extensions / api_test / webstore_private / bundle / aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.crx
blobda289748cf1062a6dfee735ecff16ad8cd04b3c4
1 <!--
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
4  * LICENSE file.
5 -->
6 <script src="common.js"></script>
7 <script>
9 var bundleItems = [
10   {
11     id: 'begfmnajjkbjdgmffnjaojchoncnmngg',
12     manifest: getManifest('bundle/app1.json'),
13     localizedName: 'app.1'
14   },
15   {
16     id: 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',  // Invalid CRX.
17     manifest: getManifest('bundle/app2.json'),
18     localizedName: 'app.2'
19   },
20   {
21     id: 'bmfoocgfinpmkmlbjhcbofejhkhlbchk',  // Wrong manifest.
22     manifest: getManifest('bundle/extension2.json'),
23     localizedName: 'extension.1'
24   },
25   {
26     id: 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb',  // No CRX, 404.
27     manifest: getManifest('bundle/extension2.json'),
28     localizedName: 'extension.2'
29   }
32 var installed = [
33   'begfmnajjkbjdgmffnjaojchoncnmngg'
36 var failed = [
37   'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
38   'bmfoocgfinpmkmlbjhcbofejhkhlbchk',
39   'pkapffpjmiilhlhbibjhamlmdhfneidj'
42 runTests([
43   function partialInstall() {
44     chrome.webstorePrivate.installBundle(
45         { localizedName: 'MyBundle' },
46         bundleItems,
47         callbackPass(function() {
48           installed.forEach(function(id) {
49             checkItemInstalled(
50                 id,
51                 callbackPass(function(result) { assertTrue(result); }));
52           });
53           failed.forEach(function(id) {
54             checkItemInstalled(
55                 id,
56                 callbackPass(function(result) { assertFalse(result); }));
57           });
58         }));
59   },
61   function allItemsFail() {
62     chrome.webstorePrivate.installBundle(
63         { localizedName: 'MyBundle' },
64         [bundleItems[2]],
65         callbackPass(function() {
66           checkItemInstalled(
67                bundleItems[2].id,
68                callbackPass(function(result) { assertFalse(result); }));
69         }));
70   },
72   function noItems() {
73     chrome.webstorePrivate.installBundle(
74         { localizedName: 'MyBundle' },
75         [],
76         callbackFail("Invalid bundle"));
77   }
78 ]);
80 </script>