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

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

Issue 7741037: Add WebstoreInlineInstaller (downloads store data, shows the install UI, and starts the install). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Put webstore response in the right directory. Created 9 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « chrome/test/data/extensions/api_test/webstore_inline_install/find_link.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <link rel="chrome-webstore-item" href="http://cws.com/detail/mmmmmmmmmmmmmmmmm mmmmmmmmmmmmmmm"> 4 <link rel="chrome-webstore-item">
5 </head> 5 </head>
6 <body> 6 <body>
7 <script> 7 <script>
8 function runTest() { 8 function runTest(galleryUrl) {
9 chrome.webstore.install(); 9 // Link URL has to be generated dynamically in order to include the right
10 // port number. The ID corresponds to the data in the "extension" directory.
11 document.getElementsByTagName('link')[0].href =
12 galleryUrl + '/detail/ecglahbcnmdpdciemllbhojghbkagdje';
13
14 try {
15 chrome.webstore.install();
16 } catch (e) {
17 window.domAutomationController.send(false);
18 throw e;
19 }
10 window.domAutomationController.send(true); 20 window.domAutomationController.send(true);
11 } 21 }
12 </script> 22 </script>
13 23
14 </body> 24 </body>
15 </html> 25 </html>
OLDNEW
« no previous file with comments | « chrome/test/data/extensions/api_test/webstore_inline_install/find_link.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698