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