| Index: chrome/test/data/extensions/api_test/webstore_private/install_bundle_invalid.html
|
| diff --git a/chrome/test/data/extensions/api_test/webstore_private/install_bundle_invalid.html b/chrome/test/data/extensions/api_test/webstore_private/install_bundle_invalid.html
|
| deleted file mode 100644
|
| index f27baea1f1b60ddc4b0776df5e9181868f885497..0000000000000000000000000000000000000000
|
| --- a/chrome/test/data/extensions/api_test/webstore_private/install_bundle_invalid.html
|
| +++ /dev/null
|
| @@ -1,73 +0,0 @@
|
| -<!--
|
| - * Copyright (c) 2012 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.
|
| --->
|
| -<script src="common.js"></script>
|
| -<script>
|
| -
|
| -var bundleItems = [
|
| - {
|
| - id: 'begfmnajjkbjdgmffnjaojchoncnmngg',
|
| - manifest: getManifest('bundle/app1.json'),
|
| - localizedName: 'app.1'
|
| - },
|
| - {
|
| - id: 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa', // Invalid CRX.
|
| - manifest: getManifest('bundle/app2.json'),
|
| - localizedName: 'app.2'
|
| - },
|
| - {
|
| - id: 'bmfoocgfinpmkmlbjhcbofejhkhlbchk', // Wrong manifest.
|
| - manifest: getManifest('bundle/extension2.json'),
|
| - localizedName: 'extension.1'
|
| - },
|
| - {
|
| - id: 'pkapffpjmiilhlhbibjhamlmdhfneidj', // No CRX, 404.
|
| - manifest: getManifest('bundle/extension2.json'),
|
| - localizedName: 'extension.2'
|
| - }
|
| -];
|
| -
|
| -var installed = [
|
| - 'begfmnajjkbjdgmffnjaojchoncnmngg'
|
| -];
|
| -
|
| -var failed = [
|
| - 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
|
| - 'bmfoocgfinpmkmlbjhcbofejhkhlbchk',
|
| - 'pkapffpjmiilhlhbibjhamlmdhfneidj'
|
| -];
|
| -
|
| -runTests([
|
| - function successfulInstall() {
|
| - chrome.webstorePrivate.installBundle(
|
| - bundleItems, callbackPass(function() {
|
| - installed.forEach(function(id) {
|
| - checkItemInstalled(
|
| - id,
|
| - callbackPass(function(result) { assertTrue(result); }));
|
| - });
|
| - failed.forEach(function(id) {
|
| - checkItemInstalled(
|
| - id,
|
| - callbackPass(function(result) { assertFalse(result); }));
|
| - });
|
| - }));
|
| - },
|
| -
|
| - function allItemsFail() {
|
| - chrome.webstorePrivate.installBundle(
|
| - [bundleItems[2]], callbackPass(function() {
|
| - checkItemInstalled(
|
| - bundleItems[2].id,
|
| - callbackPass(function(result) { assertFalse(result); }));
|
| - }));
|
| - },
|
| -
|
| - function noItems() {
|
| - chrome.webstorePrivate.installBundle([], callbackFail("unknown_error"));
|
| - }
|
| -]);
|
| -
|
| -</script>
|
|
|