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

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

Issue 12313115: Take notification API out of experimental. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Missed one pathname. Created 7 years, 10 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/notifications/api/events/background.js
diff --git a/chrome/test/data/extensions/api_test/notification/api/events/background.js b/chrome/test/data/extensions/api_test/notifications/api/events/background.js
similarity index 81%
rename from chrome/test/data/extensions/api_test/notification/api/events/background.js
rename to chrome/test/data/extensions/api_test/notifications/api/events/background.js
index 7aa21ec9324ee3b1f6a44818b55bd7b4733ae1d4..f17b743cf81953f4bcd53517cf1afa6b5285674c 100644
--- a/chrome/test/data/extensions/api_test/notification/api/events/background.js
+++ b/chrome/test/data/extensions/api_test/notifications/api/events/background.js
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-const notification = chrome.experimental.notification;
+const notifications = chrome.notifications;
var idString = "foo";
@@ -22,7 +22,7 @@ var testBasicEvents = function() {
chrome.test.succeed();
}
}
- notification.onDisplayed.addListener(onDisplayed);
+ notifications.onDisplayed.addListener(onDisplayed);
var options = {
templateType: "basic",
@@ -30,7 +30,9 @@ var testBasicEvents = function() {
title: "Attention!",
message: "Check out Cirque du Soleil"
};
- notification.create(idString, options, onCreateCallback);
+ notifications.create(idString, options, onCreateCallback);
+
};
+
chrome.test.runTests([ testBasicEvents ]);

Powered by Google App Engine
This is Rietveld 408576698