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

Side by Side 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, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 importScripts('../../serviceworker/resources/worker-testharness.js');
2 importScripts('/resources/testharness-helpers.js');
3
4 // TODO(peter): Have a more generic exposed-interface-test, also pulling in
5 // the serviceworker-notification-event.js test.
6 test(function() {
7 assert_false('requestPermission' in Notification);
8
9 }, 'Notification.requestPermission() is not exposed in Service Workers.');
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698