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

Side by Side 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, 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <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
2 <script>
3
4 runTests([
5 function invalidID() {
6 var expectedError = "Invalid id";
7 chrome.webstorePrivate.silentlyInstall(
8 { 'id': appId, 'manifest': getManifest() },
9 callbackFail(expectedError));
10 },
11
12 function successfulInstall() {
13 listenOnce(chrome.management.onInstalled, function(info) {
14 assertEq(info.id, extensionId);
15 });
16
17 chrome.webstorePrivate.silentlyInstall(
18 { 'id': extensionId, 'manifest': getManifest() },
19 callbackPass(function() {
20 checkInstalled(callbackPass(function(result) { assertTrue(result); }));
21 }));
22 }
23 ]);
24
25 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698