OLD | NEW |
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> |
OLD | NEW |