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

Unified Diff: chrome/test/data/extensions/api_test/events/background.js

Issue 15841013: Make miscellaneous_bindings and event_bindings Required as needed. Previously (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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/devtools/extensions/devtools_messaging/devtools.js ('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/api_test/events/background.js
diff --git a/chrome/test/data/extensions/api_test/events/background.js b/chrome/test/data/extensions/api_test/events/background.js
index dee47d8d9f03ff472dbb0d9c76df91ce23dfb14c..687689ff25b8e676b6a76f6c26b7bdd8d4596a4a 100644
--- a/chrome/test/data/extensions/api_test/events/background.js
+++ b/chrome/test/data/extensions/api_test/events/background.js
@@ -24,8 +24,8 @@ chrome.test.runTests([
// Tests that attaching a named event twice will fail.
function doubleAttach() {
function dummy() {};
- var onClicked = new chrome.Event("browserAction.onClicked");
- var onClicked2 = new chrome.Event("browserAction.onClicked");
+ var onClicked = chrome.test.createEvent("browserAction.onClicked");
+ var onClicked2 = chrome.test.createEvent("browserAction.onClicked");
onClicked.addListener(dummy);
chrome.test.assertTrue(onClicked.hasListeners());
try {
« no previous file with comments | « chrome/test/data/devtools/extensions/devtools_messaging/devtools.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698