| 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);
|
| + }));
|
| + }
|
| +]);
|
|
|