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

Unified Diff: chrome/test/data/extensions/api_test/webstore_private/silently_install.html

Issue 8430033: Adds a webstorePrivate method for silently installing extensions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 2 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/silently_install.html
diff --git a/chrome/test/data/extensions/api_test/webstore_private/silently_install.html b/chrome/test/data/extensions/api_test/webstore_private/silently_install.html
new file mode 100644
index 0000000000000000000000000000000000000000..93aa79237756adec3fcc14092a47a9b940f15751
--- /dev/null
+++ b/chrome/test/data/extensions/api_test/webstore_private/silently_install.html
@@ -0,0 +1,25 @@
+<script src="common.js"></script>
Aaron Boodman 2011/11/01 17:24:34 You should test that people can call silentlyInsta
jstritar 2011/11/01 19:43:05 Done. I needed to add a new flag for this, since t
+<script>
+
+runTests([
+ function invalidID() {
+ var expectedError = "Invalid id";
+ chrome.webstorePrivate.silentlyInstall(
+ { 'id': appId, 'manifest': getManifest() },
+ callbackFail(expectedError));
+ },
+
+ function successfulInstall() {
+ listenOnce(chrome.management.onInstalled, function(info) {
+ assertEq(info.id, extensionId);
+ });
+
+ chrome.webstorePrivate.silentlyInstall(
+ { 'id': extensionId, 'manifest': getManifest() },
+ callbackPass(function() {
+ checkInstalled(callbackPass(function(result) { assertTrue(result); }));
+ }));
+ }
+]);
+
+</script>

Powered by Google App Engine
This is Rietveld 408576698