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

Side by Side Diff: LayoutTests/http/tests/notifications/resources/serviceworker-notification-constructor.js

Issue 923443005: Disallow constructing the Notification object in a Service Worker. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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');
Michael van Ouwerkerk 2015/02/16 18:16:09 nit: can we use a relative url here?
Peter Beverloo 2015/02/16 18:23:57 Done.
3
4 test(function() {
5 assert_true('Notification' in self);
6
7 assert_throws({ name: 'TypeError' }, function() {
8 new Notification();
9 });
10
11 }, 'Constructing a Notification object in a Service Worker throws.');
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698