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..085ec9c132978a3d8c2f2228fa90ce8220112aa6 |
--- /dev/null |
+++ b/chrome/test/data/extensions/trigger_actions/browser_action/background.html |
@@ -0,0 +1,11 @@ |
+<html> |
dennis_jeffrey
2011/11/17 00:53:17
(optional) Do you think it would be worthwhile to
|
+<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'"}); |
+ }); |
+</script> |
+</head> |
+</html> |