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

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

Issue 2659533003: Remove the notificationProvider extension API (Closed)
Patch Set: Remove the notificationProvider extension API Created 3 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/notification_provider/events/test.js
diff --git a/chrome/test/data/extensions/api_test/notification_provider/events/test.js b/chrome/test/data/extensions/api_test/notification_provider/events/test.js
deleted file mode 100644
index d89fbe751c04355899ac2a6c1cabb0b27b503267..0000000000000000000000000000000000000000
--- a/chrome/test/data/extensions/api_test/notification_provider/events/test.js
+++ /dev/null
@@ -1,30 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-var idString = "id1";
-
-function testOnCreated() {
-
- var content = {
- type: "basic",
- iconUrl: "icon.png",
- title: "Title",
- message: "This is the message."
- };
-
- var createCallback = function (id) {}
- chrome.notifications.create(idString, content, createCallback);
-
- chrome.notificationProvider.onCreated.addListener(function(senderId,
- notificationId,
- options) {
- var str = notificationId.split("-");
- chrome.test.assertEq(idString, str[1]);
- chrome.test.assertEq(options.title, content.title);
- chrome.test.assertEq(options.message, content.message);
- chrome.test.succeed();
- });
-};
-
-chrome.test.runTests([ testOnCreated ]);

Powered by Google App Engine
This is Rietveld 408576698