OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../resources/js-test.js"></script> | 4 <script src="../../resources/js-test.js"></script> |
| 5 <script src="resources/worker-tools.js"></script> |
5 </head> | 6 </head> |
6 <body> | 7 <body> |
7 <p> | 8 <p> |
8 Tests that notifications can be displayed when permission has been | 9 Tests that notifications can be displayed when permission has been |
9 granted. The text "notification.onshow fired" should be displayed. | 10 granted from within a shared worker context. The text |
10 When running this test manually, accept the permission request. | 11 "notification.onshow fired" should be displayed. When running this |
| 12 test manually, accept the permission request and refresh. |
11 </p> | 13 </p> |
12 <div id="console"></div> | 14 <div id="console"></div> |
13 <script src="resources/notification-display.js"></script> | |
14 <script> | 15 <script> |
15 if (window.testRunner) { | 16 if (window.testRunner) { |
16 testRunner.grantWebNotificationPermission("file://", true); | 17 testRunner.grantWebNotificationPermission("file://", true); |
17 testRunner.dumpAsText(); | 18 testRunner.dumpAsText(); |
18 testRunner.waitUntilDone(); | 19 testRunner.waitUntilDone(); |
19 } | 20 } |
20 | 21 |
21 runTest(); | 22 startWorkerTest('resources/notification-display.js', 'shared'); |
22 </script> | 23 </script> |
23 </body> | 24 </body> |
24 </html> | 25 </html> |
OLD | NEW |