OLD | NEW |
1 <script> | 1 <!-- |
2 | 2 * Copyright (c) 2011 The Chromium Authors. All rights reserved. Use of this |
3 chrome.extension.onRequest.addListener(function(msg, sender, responseFunc) { | 3 * source code is governed by a BSD-style license that can be found in the |
4 if (msg == "getApi") { | 4 * LICENSE file. |
5 responseFunc(chrome.test.getApiDefinitions()); | 5 --> |
6 } else if (msg == "pass") { | 6 <script src="background.js"></script> |
7 chrome.test.notifyPass(); | |
8 } else if (msg.substr(0, 3) == "log") { | |
9 chrome.test.log(msg); | |
10 } else { | |
11 chrome.test.notifyFail("failed"); | |
12 } | |
13 }); | |
14 | |
15 // On first install, send a success message so the test can continue. | |
16 chrome.test.notifyPass(); | |
17 | |
18 </script> | |
OLD | NEW |