Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/service-workers/stub-3.2.10-navigator-service-worker-oncontrollerchange.html

Issue 2415873002: Import w3c tests for the service workers (Closed)
Patch Set: Rebase Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <title>Service Workers: oncontrollerchange</title>
4 <head>
5 <link rel="help" href="https://w3c.github.io/ServiceWorker/#navigator-se rvice-worker-oncontrollerchange">
6 <script src="/resources/testharness.js"></script>
7 <script src="/resources/testharnessreport.js"></script>
8
9 </head>
10 <body>
11
12 <!--
13
14 `navigator.serviceWorker.oncontrollerchange` is the [event handler][1] that
15 must be supported as attribute by the `[ServiceWorkerContainer][2]` object. A
16 `controllerchange` event using the `[Event][3]` interface is dispatched on
17 `[ServiceWorkerContainer][2]` object (See step 7 of the [_Activation
18 algorithm][4]) when the associated Service Worker [registration][5] for the
19 document enters the [activation process][6]. When the [activation process][6]
20 is triggered by `replace()` method call within the event handler of the
21 `install` event, `navigator.serviceWorker.controller` immediately reflects the
22 [active worker][7] as the Service Worker that [controls][8] the document.
23
24 [1]: http://goo.gl/rBfiz0
25 [2]: #service-worker-container-interface
26 [3]: http://goo.gl/Mzv7Dv
27 [4]: #activation-algorithm
28 [5]: #registration
29 [6]: #activation-process
30 [7]: #active-worker
31 [8]: #document-control
32
33 -->
34
35
36
37 <script>
38 test(function() {
39 // not_implemented();
40 }, "There are no tests for section oncontrollerchange so far.");
41 </script>
42
43 </body>
44 </html>
45
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698