summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/service-workers/stub-3.2.11-navigator-service-worker-onreloadpage.html
blob: e2207db100a21a8f8f53c72a2cd8f86ae7f510a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<!DOCTYPE html>
<html>
<title>Service Workers: onreloadpage</title>
    <head>
        <link rel="help" href="https://w3c.github.io/ServiceWorker/#navigator-service-worker-onreloadpage">
        <script src="/resources/testharness.js"></script>
        <script src="/resources/testharnessreport.js"></script>

    </head>
    <body>

<!--

`navigator.serviceWorker.onreloadpage` is the [event handler][1] that must be
supported as attribute by the `[ServiceWorkerContainer][2]` object. An event
named `reloadpage` using the `[ReloadPageEvent][3]` interface is dispatched on
`[ServiceWorkerContainer][2]` object when the page reload is triggered by the
`[self.clients.reloadAll()][4]` method call from the [active worker][5],
represented by its associated [ServiceWorkerGlobalScope][6] object, for the
document.

[1]: http://goo.gl/rBfiz0
[2]: #service-worker-container-interface
[3]: #reload-page-event-interface
[4]: #reloadall-method
[5]: #active-worker
[6]: #service-worker-global-scope-interface

-->



    <script>
        test(function() {
            // not_implemented();
        }, "There are no tests for section onreloadpage so far.");
    </script>

    </body>
</html>