Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6688)

Unified Diff: chrome/test/data/extensions/api_test/old_page_actions/background.html

Issue 346006: New event style for pageAction API.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/extensions/api_test/old_page_actions/background.html
===================================================================
--- chrome/test/data/extensions/api_test/old_page_actions/background.html (revision 0)
+++ chrome/test/data/extensions/api_test/old_page_actions/background.html (revision 0)
@@ -0,0 +1,18 @@
+<html>
+<head>
+<script>
+
+chrome.pageActions["action"].addListener(function(actionId, info) {
+ if (actionId == "action" && typeof(info.tabId) == "number" &&
+ typeof(info.tabUrl) == "string" && info.button == 1) {
+ chrome.test.notifyPass();
+ } else {
+ chrome.test.notifyFail("pageActions listener failed");
+ }
+});
+
+chrome.test.notifyPass();
+
+</script>
+</head>
+</html>
Property changes on: chrome\test\data\extensions\api_test\old_page_actions\background.html
___________________________________________________________________
Added: svn:eol-style
+ LF

Powered by Google App Engine
This is Rietveld 408576698