| Index: LayoutTests/http/tests/notifications/click-can-focus.html
|
| diff --git a/LayoutTests/http/tests/notifications/click-can-focus.html b/LayoutTests/http/tests/notifications/click-can-focus.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..0b2dee669a46889673fb1b2f15f04a3b27e21a48
|
| --- /dev/null
|
| +++ b/LayoutTests/http/tests/notifications/click-can-focus.html
|
| @@ -0,0 +1,21 @@
|
| +<!DOCTYPE HTML>
|
| +<html>
|
| + <head>
|
| + <title>Notifications: notificationclick allows a service worker to focus.</title>
|
| + <script src="../resources/testharness.js"></script>
|
| + <script src="../resources/testharnessreport.js"></script>
|
| + <script src="../serviceworker/resources/test-helpers.js"></script>
|
| + </head>
|
| + <body>
|
| + <script>
|
| + if (window.testRunner)
|
| + testRunner.grantWebNotificationPermission(location.origin, true);
|
| +
|
| + // Tests that when a serviceworker receives a click event, it can focus a
|
| + // client once in some timeframe after receiving the event.
|
| + service_worker_test(
|
| + 'resources/serviceworker-click-can-focus.js',
|
| + 'notificationclick allows SW to focus a client.');
|
| + </script>
|
| + </body>
|
| +</html>
|
|
|