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

Unified Diff: chrome/test/data/extensions/api_test/extension_gallery_install/invalid_begin.html

Issue 4727001: Split the private webstore install API into two parts.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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/extension_gallery_install/invalid_begin.html
===================================================================
--- chrome/test/data/extensions/api_test/extension_gallery_install/invalid_begin.html (revision 0)
+++ chrome/test/data/extensions/api_test/extension_gallery_install/invalid_begin.html (revision 0)
@@ -0,0 +1,15 @@
+<script src="common.js"></script>
+<script>
+// This tests that an invalid id passed to beginInstall generates an error, and
+// that completeInstall raises an error in this case as well.
+chrome.webstorePrivate.beginInstall("some invalid id", function() {
+ assertEq(chrome.extension.lastError.message, "Invalid id");
+
+ chrome.webstorePrivate.completeInstall(extension_id, function() {
Erik does not do reviews 2010/11/10 16:47:45 this seems redundant since you already have the se
asargent_no_longer_on_chrome 2010/11/10 22:58:23 Agreed - I've removed this part.
+ var expected_error = extension_id +
+ " does not match a previous call to beginInstall";
+ assertEq(chrome.extension.lastError.message, expected_error);
+ succeed();
+ });
+});
+</script>
Property changes on: chrome/test/data/extensions/api_test/extension_gallery_install/invalid_begin.html
___________________________________________________________________
Added: svn:eol-style
+ LF

Powered by Google App Engine
This is Rietveld 408576698