| <!doctype html> |
| <html> |
| <head> |
| <title>Notifications: Simulating a click should call the onclick event.</title> |
| <script src="../resources/testharness.js"></script> |
| <script src="../resources/testharnessreport.js"></script> |
| <script src="resources/test-helpers.js"></script> |
| <script src="../resources/permissions-helper.js"></script> |
| </head> |
| <body> |
| <script> |
| // Tests that Document-bound notifications will have their onclick event |
| // fired when they're being clicked on. When the test is being ran |
| // manually, grant Notification permission and click on the notification. |
| PermissionsHelper.setPermission('notifications', 'granted').then(function() { |
| var script = document.createElement('script'); |
| script.src = 'resources/click-event-test.js'; |
| document.body.appendChild(script); |
| }); |
| </script> |
| </body> |
| </html> |