OLD | NEW |
(Empty) | |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 chrome.test.runTests([ |
| 6 function HTMLNotificationNotFound() { |
| 7 // createHTMLNotification should not be exposed. |
| 8 if (window.webkitNotifications.createHTMLNotification) |
| 9 chrome.test.fail("createHTMLNotification is found."); |
| 10 else |
| 11 chrome.test.succeed(); |
| 12 }, |
| 13 function TextNotificationFound() { |
| 14 if (!window.webkitNotifications.createNotification) |
| 15 chrome.test.fail("createNotification not found."); |
| 16 else |
| 17 chrome.test.succeed(); |
| 18 } |
| 19 ]); |
| 20 |
OLD | NEW |