| Index: chrome/test/data/extensions/api_test/stubs/background.html
|
| ===================================================================
|
| --- chrome/test/data/extensions/api_test/stubs/background.html (revision 0)
|
| +++ chrome/test/data/extensions/api_test/stubs/background.html (revision 0)
|
| @@ -0,0 +1,16 @@
|
| +<script>
|
| +
|
| +chrome.extension.onRequest.addListener(function(msg, sender, responseFunc) {
|
| + if (msg == "getApi") {
|
| + responseFunc(JSON.parse(chrome.test.getApiDefinitions()));
|
| + } else if (msg == "pass") {
|
| + chrome.test.notifyPass();
|
| + } else {
|
| + chrome.test.notifyFail("failed");
|
| + }
|
| +});
|
| +
|
| +// On first install, send a success message so the test can continue.
|
| +chrome.test.notifyPass();
|
| +
|
| +</script>
|
|
|
| Property changes on: chrome\test\data\extensions\api_test\stubs\background.html
|
| ___________________________________________________________________
|
| Added: svn:eol-style
|
| + LF
|
|
|
|
|