4 <link rel="chrome-webstore-item">
8 console.log('Page loaded');
10 function runTest(galleryUrl) {
11 console.log('In runTest');
13 // Link URL has to be generated dynamically in order to include the right
14 // port number. The ID corresponds to the data in the "extension" directory.
15 document.getElementsByTagName('link')[0].href =
16 galleryUrl + '/detail/ecglahbcnmdpdciemllbhojghbkagdje';
19 chrome.webstore.install(
22 console.log('Ran test, sending response');
23 window.domAutomationController.send(true);
24 console.log('Test complete');
27 console.log('Unexpected error: ' + error);
28 window.domAutomationController.send(false);
30 // Force a garbage collection, so that if the callbacks aren't being
31 // retained properly they'll get collected and the test will fail.
34 console.log('Unexpected exception: ' + e);
35 window.domAutomationController.send(false);