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

Unified Diff: chrome/test/data/extensions/api_test/app_notifications/test.js

Issue 9737001: Fix crash in AppNotifyChannelSetup when incognito profiles are used. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: feedback + test failures Created 8 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
« no previous file with comments | « chrome/test/data/extensions/api_test/app_notifications/test.html ('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/app_notifications/test.js
diff --git a/chrome/test/data/extensions/api_test/app_notifications/test.js b/chrome/test/data/extensions/api_test/app_notifications/test.js
new file mode 100644
index 0000000000000000000000000000000000000000..c7a53cc13d00c444389ee490bdf004cf43b82b1a
--- /dev/null
+++ b/chrome/test/data/extensions/api_test/app_notifications/test.js
@@ -0,0 +1,26 @@
+// 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.
+
+var error = "This API is not accessible by 'split' mode extensions" +
+ " in incognito windows.";
+
+chrome.test.runTests([
+ function notify() {
+ chrome.experimental.app.notify(
+ {}, chrome.test.callbackFail(error));
+ },
+
+ function clearAllNotifications() {
+ chrome.experimental.app.clearAllNotifications(
+ {}, chrome.test.callbackFail(error));
+ },
+
+ function getChannel() {
+ chrome.appNotifications.getChannel(
+ {clientId: "dummy_id"},
+ chrome.test.callbackPass(function(channelId, e) {
+ chrome.test.assertEq(error, e);
+ }));
+ }
+]);
« no previous file with comments | « chrome/test/data/extensions/api_test/app_notifications/test.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698