Index: chrome/test/data/extensions/api_test/webstore_private/empty.js |
diff --git a/chrome/test/data/extensions/api_test/webstore_private/empty.js b/chrome/test/data/extensions/api_test/webstore_private/empty.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..5d02b75611ed8373fedd5bf1417a1ca685cd7c45 |
--- /dev/null |
+++ b/chrome/test/data/extensions/api_test/webstore_private/empty.js |
@@ -0,0 +1,20 @@ |
+// 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 manifest = getManifest(); |
+getIconData(function(icon) { |
+ |
+ // Begin installing. |
+ chrome.webstorePrivate.beginInstallWithManifest3( |
+ {'id': extensionId,'iconData': icon, 'manifest': manifest }, |
+ function(result) { |
+ assertNoLastError(); |
+ assertEq(result, ""); |
+ |
+ // Now complete the installation. |
+ var expectedError = "Package is invalid: 'CRX_HEADER_INVALID'."; |
+ chrome.webstorePrivate.completeInstall(extensionId, |
+ callbackFail(expectedError)); |
+ }); |
+}); |