Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(105)

Unified Diff: LayoutTests/http/tests/notifications/resources/request-permission-worker.js

Issue 1318293002: Only expose Notification.requestPermission() on the Window global. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: handle detached contexts Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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.');

Powered by Google App Engine
This is Rietveld 408576698