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

Unified Diff: chrome/test/data/extensions/api_test/notifications/api/csp/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/csp/background.js
diff --git a/chrome/test/data/extensions/api_test/notification/api/csp/background.js b/chrome/test/data/extensions/api_test/notifications/api/csp/background.js
similarity index 87%
rename from chrome/test/data/extensions/api_test/notification/api/csp/background.js
rename to chrome/test/data/extensions/api_test/notifications/api/csp/background.js
index 266de2da03ea3c413a190b455a9f807c4933e72d..513c4f8e36d7ab8d193b444ac25fdafad2f6ca67 100644
--- a/chrome/test/data/extensions/api_test/notification/api/csp/background.js
+++ b/chrome/test/data/extensions/api_test/notifications/api/csp/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";
@@ -21,7 +21,7 @@ var testCSP = function() {
title: "Attention!",
message: "Check out Cirque du Soleil"
};
- notification.create(idString, options, onCreateCallback);
+ notifications.create(idString, options, onCreateCallback);
};
function testDataURL() {
@@ -41,7 +41,7 @@ function testDataURL() {
title: "Attention!",
message: "Check out Cirque du Soleil"
};
- notification.create(idString, options, onCreateCallback);
+ notifications.create(idString, options, onCreateCallback);
}
function testCSPUpdateIconURL() {
@@ -63,7 +63,7 @@ function testCSPUpdateIconURL() {
title: "Attention!",
message: "Check out Cirque du Soleil"
};
- notification.update(idString, options2, onUpdateCallback);
+ notifications.update(idString, options2, onUpdateCallback);
}
var options = {
templateType: "basic",
@@ -73,7 +73,7 @@ function testCSPUpdateIconURL() {
title: "Attention!",
message: "Check out Cirque du Soleil"
};
- notification.create(idString, options, onCreateCallback);
+ notifications.create(idString, options, onCreateCallback);
}
function testCSPUpdateImageURL() {
@@ -98,7 +98,7 @@ function testCSPUpdateImageURL() {
title: "Attention!",
message: "Check out Cirque du Soleil"
};
- notification.update(idString, options2, onUpdateCallback);
+ notifications.update(idString, options2, onUpdateCallback);
}
var options = {
templateType: "image",
@@ -111,7 +111,7 @@ function testCSPUpdateImageURL() {
title: "Attention!",
message: "Check out Cirque du Soleil"
};
- notification.create(idString, options, onCreateCallback);
+ notifications.create(idString, options, onCreateCallback);
}
function testCSPUpdateButtonIconURL() {
@@ -129,7 +129,7 @@ function testCSPUpdateButtonIconURL() {
}
var options2 = {
templateType: "basic",
- iconUrl: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAA" +
+ iconUrl: "xdata:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAA" +
dharcourt 2013/03/04 23:46:27 "xdata" -> "data"?
"CNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHw" +
"AAAABJRU5ErkJggg==",
title: "Attention!",
@@ -139,7 +139,7 @@ function testCSPUpdateButtonIconURL() {
} ],
message: "Check out Cirque du Soleil"
};
- notification.update(idString, options2, onUpdateCallback);
+ notifications.update(idString, options2, onUpdateCallback);
}
var options = {
templateType: "basic",
@@ -155,7 +155,7 @@ function testCSPUpdateButtonIconURL() {
} ],
message: "Check out Cirque du Soleil"
};
- notification.create(idString, options, onCreateCallback);
+ notifications.create(idString, options, onCreateCallback);
}
chrome.test.runTests([
testCSP,

Powered by Google App Engine
This is Rietveld 408576698