OLD | NEW |
(Empty) | |
| 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> |
| 8 |
| 9 var bundleItems = [ |
| 10 { |
| 11 id: 'begfmnajjkbjdgmffnjaojchoncnmngg', |
| 12 manifest: getManifest('bundle/app1.json'), |
| 13 localizedName: 'app.1' |
| 14 }, |
| 15 { |
| 16 id: 'mpneghmdnmaolkljkipbhaienajcflfe', |
| 17 manifest: getManifest('bundle/app2.json'), |
| 18 localizedName: 'app.2' |
| 19 }, |
| 20 { |
| 21 id: 'bmfoocgfinpmkmlbjhcbofejhkhlbchk', |
| 22 manifest: getManifest('bundle/extension1.json'), |
| 23 localizedName: 'extension.1' |
| 24 }, |
| 25 { |
| 26 id: 'pkapffpjmiilhlhbibjhamlmdhfneidj', |
| 27 manifest: getManifest('bundle/extension2.json'), |
| 28 localizedName: 'extension.2' |
| 29 } |
| 30 ]; |
| 31 |
| 32 runTests([ |
| 33 function successfulInstall() { |
| 34 chrome.webstorePrivate.installBundle( |
| 35 bundleItems, callbackPass(function() { |
| 36 bundleItems.forEach(function(item) { |
| 37 checkItemInstalled( |
| 38 item.id, |
| 39 callbackPass(function(result) { assertTrue(result); })); |
| 40 }); |
| 41 })); |
| 42 } |
| 43 ]); |
| 44 |
| 45 </script> |
OLD | NEW |