| OLD | NEW |
| 1 <!doctype html> | 1 <!doctype html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <title>Notifications: Simulating a click should call the onclick event.</tit
le> | 4 <title>Notifications: Simulating a click should call the onclick event.</tit
le> |
| 5 <script src="../resources/testharness.js"></script> | 5 <script src="../resources/testharness.js"></script> |
| 6 <script src="../resources/testharnessreport.js"></script> | 6 <script src="../resources/testharnessreport.js"></script> |
| 7 <script src="resources/test-helpers.js"></script> | 7 <script src="resources/test-helpers.js"></script> |
| 8 </head> | 8 </head> |
| 9 <body> | 9 <body> |
| 10 <script> | 10 <script> |
| 11 // Tests that Document-bound notifications will have their onclick event | 11 // Tests that Document-bound notifications will have their onclick event |
| 12 // fired when they're being clicked on. When the test is being ran | 12 // fired when they're being clicked on. When the test is being ran |
| 13 // manually, grant Notification permission and click on the notification. | 13 // manually, grant Notification permission and click on the notification. |
| 14 if (window.testRunner) { | 14 if (window.testRunner) |
| 15 testRunner.setPermission('notifications', 'granted', location.origin,
location.origin); | 15 testRunner.setPermission('notifications', 'granted', location.origin,
location.origin); |
| 16 testRunner.grantWebNotificationPermission(location.origin, true); | |
| 17 } | |
| 18 </script> | 16 </script> |
| 19 <script src="resources/click-event-test.js"></script> | 17 <script src="resources/click-event-test.js"></script> |
| 20 </body> | 18 </body> |
| 21 </html> | 19 </html> |
| OLD | NEW |