Chromium Code Reviews| OLD | NEW |
|---|---|
| (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> | |
| OLD | NEW |