| 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.click() will result in the onclick event bei
ng | 9 Tests that Notification.click() will result in the onclick event bei
ng |
| 9 called in a document context. When running this test manually, accep
t | 10 called in a shared worker context. When running this test manually, |
| 10 the permission and click on the shown notification. | 11 accept the permission and click on the shown notification. |
| 11 </p> | 12 </p> |
| 12 <div id="console"></div> | 13 <div id="console"></div> |
| 13 <script src="resources/notification-click.js"></script> | |
| 14 <script> | 14 <script> |
| 15 if (window.testRunner) { | 15 if (window.testRunner) { |
| 16 testRunner.grantWebNotificationPermission("file://", true); | 16 testRunner.grantWebNotificationPermission("file://", true); |
| 17 testRunner.waitUntilDone(); | 17 testRunner.waitUntilDone(); |
| 18 } | 18 } |
| 19 | 19 |
| 20 runTest(); | 20 startWorkerTest('resources/notification-click.js', 'shared'); |
| 21 </script> | 21 </script> |
| 22 </body> | 22 </body> |
| 23 </html> | 23 </html> |
| OLD | NEW |