OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE HTML> |
| 2 <html> |
| 3 <head> |
| 4 <title>Notifications: notificationclick allows a service worker to focus.</t
itle> |
| 5 <script src="../resources/testharness.js"></script> |
| 6 <script src="../resources/testharnessreport.js"></script> |
| 7 <script src="../serviceworker/resources/test-helpers.js"></script> |
| 8 </head> |
| 9 <body> |
| 10 <script> |
| 11 if (window.testRunner) |
| 12 testRunner.grantWebNotificationPermission(location.origin, true); |
| 13 |
| 14 // Tests that when a serviceworker receives a click event, it can focus a |
| 15 // client once in some timeframe after receiving the event. |
| 16 service_worker_test( |
| 17 'resources/serviceworker-click-can-focus.js', |
| 18 'notificationclick allows SW to focus a client.'); |
| 19 </script> |
| 20 </body> |
| 21 </html> |
OLD | NEW |