Chromium Code Reviews| Index: chrome/test/data/extensions/trigger_actions/browser_action/background.html |
| diff --git a/chrome/test/data/extensions/trigger_actions/browser_action/background.html b/chrome/test/data/extensions/trigger_actions/browser_action/background.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..36b8e4457ea7be394a4ab5fcb49e8e80b82bcdfc |
| --- /dev/null |
| +++ b/chrome/test/data/extensions/trigger_actions/browser_action/background.html |
| @@ -0,0 +1,11 @@ |
| +<html> |
| +<head> |
| +<script> |
| + // Turn the background red when the user clicks on the browser action. |
| + chrome.browserAction.onClicked.addListener(function(tab) { |
| + chrome.tabs.executeScript( |
| + null, {code:"document.body.style.backgroundColor='red'"}); |
|
dennis_jeffrey
2011/11/17 00:11:32
nit: space right after ':'
frankf
2011/11/17 00:25:03
Done.
|
| + }); |
| +</script> |
| +</head> |
| +</html> |