Index: chrome/test/data/extensions/api_test/notifications/no_html/background.js |
diff --git a/chrome/test/data/extensions/api_test/notifications/no_html/background.js b/chrome/test/data/extensions/api_test/notifications/no_html/background.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..6bc140b1a32dede2fc449dfac95ad0e2d7fc7124 |
--- /dev/null |
+++ b/chrome/test/data/extensions/api_test/notifications/no_html/background.js |
@@ -0,0 +1,20 @@ |
+// Copyright 2013 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. |
+ |
+chrome.test.runTests([ |
+ function HTMLNotificationNotFound() { |
+ // createHTMLNotification should not be exposed. |
+ if (window.webkitNotifications.createHTMLNotification) |
+ chrome.test.fail("createHTMLNotification is found."); |
+ else |
+ chrome.test.succeed(); |
+ }, |
+ function TextNotificationFound() { |
+ if (!window.webkitNotifications.createNotification) |
+ chrome.test.fail("createNotification not found."); |
+ else |
+ chrome.test.succeed(); |
+ } |
+]); |
+ |