Chromium Code Reviews| 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 |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..77e6080c8fcf78a5243146ebb1e74b288334ae79 |
| --- /dev/null |
| +++ b/chrome/test/data/extensions/api_test/notification_provider/events/test.js |
| @@ -0,0 +1,24 @@ |
| +// Copyright (c) 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 EventsTest = function() { |
|
not at google - send to devlin
2014/07/28 21:32:39
eventsTest? or better, testEvents?
liyanhou
2014/07/29 18:26:54
Done.
|
| + |
| + chrome.notificationProvider.onCreated.addListener(function(senderId, |
| + notificationId, |
| + options) { |
| + chrome.test.succeed(); |
| + }); |
| + |
| + chrome.notificationProvider.onUpdated.addListener(function(senderId, |
| + notificationId, |
| + options) { |
| + chrome.test.succeed(); |
| + }); |
| + |
| + chrome.notificationProvider.onCleared.addListener(function(senderId, |
| + notificationId) { |
| + chrome.test.succeed(); |
| + }); |
| +}; |
| + |
| +chrome.test.runTests([ EventsTest ]); |