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

Unified Diff: chrome/test/data/extensions/platform_apps/context_menu_click/test.js

Issue 10832348: Tab value for context menu onclick event should be optional. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update the test code to chrome.app.runtime instead of experimental Created 8 years, 4 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
« no previous file with comments | « chrome/test/data/extensions/platform_apps/context_menu_click/manifest.json ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/extensions/platform_apps/context_menu_click/test.js
diff --git a/chrome/test/data/extensions/platform_apps/context_menu/test.js b/chrome/test/data/extensions/platform_apps/context_menu_click/test.js
similarity index 70%
copy from chrome/test/data/extensions/platform_apps/context_menu/test.js
copy to chrome/test/data/extensions/platform_apps/context_menu_click/test.js
index c3280a02b873831a8480028c265dd9a7db86242d..74757b8e457fc64aa648ee26786fdb8ab26814b9 100644
--- a/chrome/test/data/extensions/platform_apps/context_menu/test.js
+++ b/chrome/test/data/extensions/platform_apps/context_menu_click/test.js
@@ -11,3 +11,8 @@ chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.window.create('main.html', {}, function() {});
});
});
+
+chrome.contextMenus.onClicked.addListener(function(info, tab) {
+ chrome.test.assertEq(undefined, tab);
+ chrome.test.sendMessage("onClicked fired for " + info.menuItemId);
+});
« no previous file with comments | « chrome/test/data/extensions/platform_apps/context_menu_click/manifest.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698