Chromium Code Reviews| 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> |