OLD | NEW |
1 <script src="common.js"></script> | 1 <script src="common.js"></script> |
2 <script> | 2 <script> |
3 // This tests the user cancelling an install started by | 3 // This tests the user cancelling an install started by |
4 // beginInstallWithManifest. | 4 // beginInstallWithManifest2. |
5 | 5 |
6 var manifest = getManifest(); | 6 var manifest = getManifest(); |
7 getIconData(function(icon) { | 7 getIconData(function(icon) { |
8 | 8 |
9 // Begin installing. | 9 // Begin installing. |
10 chrome.webstorePrivate.beginInstallWithManifest(extensionId, | 10 chrome.webstorePrivate.beginInstallWithManifest2({ 'id':extensionId, |
11 icon, | 11 'iconData': icon, |
12 manifest, | 12 'manifest': manifest }, |
13 function(result) { | 13 function(result) { |
14 assertEq(result, "user_cancelled"); | 14 assertEq(result, "user_cancelled"); |
15 succeed(); | 15 succeed(); |
16 }); | 16 }); |
17 }); | 17 }); |
18 </script> | 18 </script> |
OLD | NEW |