| Index: LayoutTests/http/tests/notifications/serviceworker-throw-constructor.html
|
| diff --git a/LayoutTests/http/tests/notifications/serviceworker-throw-constructor.html b/LayoutTests/http/tests/notifications/serviceworker-throw-constructor.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..03ed5f6aa0efa96de0a60b172211f5f99c2c8f73
|
| --- /dev/null
|
| +++ b/LayoutTests/http/tests/notifications/serviceworker-throw-constructor.html
|
| @@ -0,0 +1,19 @@
|
| +<!doctype html>
|
| +<html>
|
| + <head>
|
| + <title>Notifications: Constructing a Notification should throw in a Service Worker.</title>
|
| + <script src="../resources/testharness.js"></script>
|
| + <script src="../resources/testharnessreport.js"></script>
|
| + <script src="../serviceworker/resources/test-helpers.js"></script>
|
| + </head>
|
| + <body>
|
| + <script>
|
| + // Tests that constructing a Notification object in a Service Worker
|
| + // throws a TypeError per the specification. Developers should be using
|
| + // registration.showNotification() instead.
|
| + service_worker_test(
|
| + 'resources/serviceworker-notification-constructor.js',
|
| + 'Notification constructor behavior in a Service Worker.');
|
| + </script>
|
| + </body>
|
| +</html>
|
|
|