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

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

Issue 12313115: Take notification API out of experimental. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix merge conflict. Created 7 years, 9 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/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/notification/api/events/background.js
deleted file mode 100644
index 7aa21ec9324ee3b1f6a44818b55bd7b4733ae1d4..0000000000000000000000000000000000000000
--- a/chrome/test/data/extensions/api_test/notification/api/events/background.js
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright (c) 2012 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.
-
-const notification = chrome.experimental.notification;
-
-var idString = "foo";
-
-var testBasicEvents = function() {
- var incidents = 0;
-
- var onCreateCallback = function(id) {
- chrome.test.assertTrue(id.length > 0);
- chrome.test.assertEq(idString, id);
- incidents++;
- }
-
- var onDisplayed = function(id) {
- incidents++;
- if (incidents == 2) {
- chrome.test.assertEq(idString, id);
- chrome.test.succeed();
- }
- }
- notification.onDisplayed.addListener(onDisplayed);
-
- var options = {
- templateType: "basic",
- iconUrl: "/icon.png",
- title: "Attention!",
- message: "Check out Cirque du Soleil"
- };
- notification.create(idString, options, onCreateCallback);
-};
-
-chrome.test.runTests([ testBasicEvents ]);

Powered by Google App Engine
This is Rietveld 408576698