Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Unified Diff: chrome/test/data/extensions/api_test/webstore_private/empty.js

Issue 10911158: Pass on download or installation errors from WebstoreInstaller to the CompleteInstall function. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase and rename error204->empty Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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));
+ });
+});

Powered by Google App Engine
This is Rietveld 408576698