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

Side by Side Diff: LayoutTests/http/tests/notifications/serviceworker-throw-constructor.html

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 <!doctype html>
2 <html>
3 <head>
4 <title>Notifications: Constructing a Notification should throw in a Service Worker.</title>
5 <script src="../resources/testharness.js"></script>
6 <script src="../resources/testharnessreport.js"></script>
7 <script src="../serviceworker/resources/test-helpers.js"></script>
8 </head>
9 <body>
10 <script>
11 // Tests that the constructing a Notification object in a Service Worker
Michael van Ouwerkerk 2015/02/16 18:16:09 s/that the/that/
Peter Beverloo 2015/02/16 18:23:57 Done.
12 // throws a TypeError per the specification. Developers should be using
13 // registration.showNotification() instead.
14 service_worker_test(
15 'resources/serviceworker-notification-constructor.js',
16 'Notification constructor behavior in a Service Worker.');
17 </script>
18 </body>
19 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698