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

Unified Diff: LayoutTests/http/tests/notifications/request-permission-in-service-workers.html

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/request-permission-in-service-workers.html
diff --git a/LayoutTests/http/tests/notifications/request-permission-in-service-workers.html b/LayoutTests/http/tests/notifications/request-permission-in-service-workers.html
new file mode 100644
index 0000000000000000000000000000000000000000..f9ff5c3a425e88f557023382c717cdb92da264dd
--- /dev/null
+++ b/LayoutTests/http/tests/notifications/request-permission-in-service-workers.html
@@ -0,0 +1,17 @@
+<!doctype html>
+<html>
+ <head>
+ <title>Notifications: Notification.requestPermission() should not be exposed in Service Workers.</title>
+ <script src="../resources/testharness.js"></script>
+ <script src="../resources/testharnessreport.js"></script>
+ <script src="../serviceworker/resources/test-helpers.js"></script>
+ </head>
+ <body>
+ <script>
+ // The Notification.requestPermission() method should not be exposed in Service Workers.
+ service_worker_test(
+ 'resources/request-permission-worker.js',
+ 'Notification.requestPermission() should not be exposed in Service Workers.');
+ </script>
+ </body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698