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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/service-workers/stub-4.7.2.1-install-event-section.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: InstallEvent</title>
4 <head>
5 <link rel="help" href="https://w3c.github.io/ServiceWorker/#install-even t-section">
6 <script src="/resources/testharness.js"></script>
7 <script src="/resources/testharnessreport.js"></script>
8
9 <script src=/resources/WebIDLParser.js></script>
10 <script src=/resources/idlharness.js></script>
11
12 </head>
13 <body>
14
15 <script type=text/plain id="idl_0">
16 interface InstallEvent : InstallPhaseEvent {
17 readonly attribute ServiceWorker? activeWorker;
18 void replace();
19 };
20 </pre>
21
22 <!--
23 Service Workers use the `[InstallEvent][1]` interface for `[install][2]` event.
24
25 [1]: #install-event-interface
26 [2]: #install-event
27 -->
28
29
30 <script type=text/plain id="untested_idls">
31 interface ServiceWorker {};
32 interface InstallPhaseEvent {};
33 </pre>
34
35 <script>
36 var idl_array = new IdlArray();
37 idl_array.add_untested_idls(document.getElementById("untested_idls").tex tContent);
38 idl_array.add_idls(document.getElementById("idl_0").textContent);
39 idl_array.add_objects({
40 InstallEvent: ["throw new Error ('No object defined for the InstallE vent interface')"]
41 });
42 idl_array.test();
43 </script>
44
45 </body>
46 </html>
47
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698