Chromium Code Reviews
|
| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <script> | |
| 2 | |
| 3 chrome.extension.onRequest.addListener(function(msg, sender, responseFunc) { | |
| 4 if (msg == "getApi") { | |
| 5 responseFunc(JSON.parse(chrome.test.getApiDefinitions())); | |
| 6 } else if (msg == "pass") { | |
| 7 chrome.test.notifyPass(); | |
| 8 } else { | |
| 9 chrome.test.notifyFail("failed"); | |
| 10 } | |
| 11 }); | |
| 12 | |
| 13 // On first install, send a success message so the test can continue. | |
| 14 chrome.test.notifyPass(); | |
| 15 | |
| 16 </script> | |
| OLD | NEW |