Index: LayoutTests/http/tests/notifications/resources/request-permission-worker.js |
diff --git a/LayoutTests/http/tests/notifications/resources/request-permission-worker.js b/LayoutTests/http/tests/notifications/resources/request-permission-worker.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..3203493f3f73fe35546628b9e6f035119ecba7d0 |
--- /dev/null |
+++ b/LayoutTests/http/tests/notifications/resources/request-permission-worker.js |
@@ -0,0 +1,9 @@ |
+importScripts('../../serviceworker/resources/worker-testharness.js'); |
+importScripts('/resources/testharness-helpers.js'); |
+ |
+// TODO(peter): Have a more generic exposed-interface-test, also pulling in |
+// the serviceworker-notification-event.js test. |
+test(function() { |
+ assert_false('requestPermission' in Notification); |
+ |
+}, 'Notification.requestPermission() is not exposed in Service Workers.'); |