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 Notification.close() closes the notification, and the | 9 Tests that Notification.close() closes the notification when called |
9 Notification.onclose event gets called. | 10 from a shared worker context, causing the Notification.onclose event |
| 11 to be invoked. |
10 </p> | 12 </p> |
11 <div id="console"></div> | 13 <div id="console"></div> |
12 <script src="resources/notification-close.js"></script> | |
13 <script> | 14 <script> |
14 if (window.testRunner) { | 15 if (window.testRunner) { |
15 testRunner.grantWebNotificationPermission("file://", true); | 16 testRunner.grantWebNotificationPermission("file://", true); |
16 testRunner.waitUntilDone(); | 17 testRunner.waitUntilDone(); |
17 } | 18 } |
18 | 19 |
19 runTest(); | 20 startWorkerTest('resources/notification-close.js', 'shared'); |
20 </script> | 21 </script> |
21 </body> | 22 </body> |
22 </html> | 23 </html> |
OLD | NEW |