| Index: LayoutTests/fast/notifications/notifications-constructor-with-permission-dedicated-worker.html
|
| diff --git a/LayoutTests/fast/notifications/notifications-constructor-with-permission.html b/LayoutTests/fast/notifications/notifications-constructor-with-permission-dedicated-worker.html
|
| similarity index 59%
|
| copy from LayoutTests/fast/notifications/notifications-constructor-with-permission.html
|
| copy to LayoutTests/fast/notifications/notifications-constructor-with-permission-dedicated-worker.html
|
| index 15d64e747c9dc3ddc5f23d2e55ef0d0ea6adfe5e..c2051a04e4b810f876f079caf112fd7c3375d86f 100644
|
| --- a/LayoutTests/fast/notifications/notifications-constructor-with-permission.html
|
| +++ b/LayoutTests/fast/notifications/notifications-constructor-with-permission-dedicated-worker.html
|
| @@ -2,15 +2,16 @@
|
| <html>
|
| <head>
|
| <script src="../../resources/js-test.js"></script>
|
| + <script src="resources/worker-tools.js"></script>
|
| </head>
|
| <body>
|
| <p>
|
| Tests that notifications can be displayed when permission has been
|
| - granted. The text "notification.onshow fired" should be displayed.
|
| - When running this test manually, accept the permission request.
|
| + granted from within a dedicated worker context. The text
|
| + "notification.onshow fired" should be displayed. When running this
|
| + test manually, accept the permission request and refresh.
|
| </p>
|
| <div id="console"></div>
|
| - <script src="resources/notification-display.js"></script>
|
| <script>
|
| if (window.testRunner) {
|
| testRunner.grantWebNotificationPermission("file://", true);
|
| @@ -18,7 +19,7 @@
|
| testRunner.waitUntilDone();
|
| }
|
|
|
| - runTest();
|
| + startWorkerTest('resources/notification-display.js', 'dedicated');
|
| </script>
|
| </body>
|
| </html>
|
|
|