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

Side by Side Diff: chrome/test/data/extensions/api_test/webstore_inline_install/multiple_install_calls.html

Issue 175263003: Add chrome.webstore API methods to allow sites to see progress of installation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Latest master Created 6 years, 8 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <link rel="chrome-webstore-item"> 4 <link rel="chrome-webstore-item">
5 </head> 5 </head>
6 <body> 6 <body>
7 <script> 7 <script>
8 console.log('Page loaded'); 8 console.log('Page loaded');
9 9
10 function runTest(galleryUrl) { 10 function runTest(galleryUrl) {
(...skipping 13 matching lines...) Expand all
24 chrome.webstore.install(undefined, callback, callback); 24 chrome.webstore.install(undefined, callback, callback);
25 } catch (e) { 25 } catch (e) {
26 console.log('unexpected exception: ' + e); 26 console.log('unexpected exception: ' + e);
27 window.domAutomationController.send(false); 27 window.domAutomationController.send(false);
28 throw e; 28 throw e;
29 } 29 }
30 try { 30 try {
31 chrome.webstore.install(undefined, callback, callback); 31 chrome.webstore.install(undefined, callback, callback);
32 } catch (e) { 32 } catch (e) {
33 console.log('Ran test, sending response'); 33 console.log('Ran test, sending response');
34 window.domAutomationController.send(e.indexOf('already pending') != -1); 34 window.domAutomationController.send(
35 e.message.indexOf('already pending') != -1);
35 } 36 }
36 } 37 }
37 </script> 38 </script>
38 39
39 </body> 40 </body>
40 </html> 41 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698