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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/service-workers/stub-4.1-service-worker-global-scope.html

Issue 2434563008: Import wpt@26c8d4e87448d1c4e5ebf2ddb4917c0633c201db (Closed)
Patch Set: Mark one more test as potentially timing out Created 4 years, 1 month 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <title>Service Workers: ServiceWorkerGlobalScope</title> 3 <title>Service Workers: ServiceWorkerGlobalScope</title>
4 <head> 4 <head>
5 <link rel="help" href="https://w3c.github.io/ServiceWorker/#service-work er-global-scope"> 5 <link rel="help" href="https://w3c.github.io/ServiceWorker/#service-work er-global-scope">
6 <script src="/resources/testharness.js"></script> 6 <script src="/resources/testharness.js"></script>
7 <script src="/resources/testharnessreport.js"></script> 7 <script src="/resources/testharnessreport.js"></script>
8 8
9 <script src=/resources/WebIDLParser.js></script> 9 <script src=/resources/WebIDLParser.js></script>
10 <script src=/resources/idlharness.js></script> 10 <script src=/resources/idlharness.js></script>
(...skipping 19 matching lines...) Expand all
30 attribute EventHandler onactivate; 30 attribute EventHandler onactivate;
31 attribute EventHandler onfetch; 31 attribute EventHandler onfetch;
32 attribute EventHandler onbeforeevicted; 32 attribute EventHandler onbeforeevicted;
33 attribute EventHandler onevicted; 33 attribute EventHandler onevicted;
34 34
35 // The event.source of these MessageEvents are instances of Client 35 // The event.source of these MessageEvents are instances of Client
36 attribute EventHandler onmessage; 36 attribute EventHandler onmessage;
37 37
38 // close() method inherited from WorkerGlobalScope is not exposed. 38 // close() method inherited from WorkerGlobalScope is not exposed.
39 }; 39 };
40 </pre> 40 </script>
41 41
42 <!-- 42 <!--
43 The `ServiceWorkerGlobalScope` interface represents the global execution 43 The `ServiceWorkerGlobalScope` interface represents the global execution
44 context of a Service Worker. `ServiceWorkerGlobalScope` object provides 44 context of a Service Worker. `ServiceWorkerGlobalScope` object provides
45 generic, event-driven, time-limited script execution contexts that run at an 45 generic, event-driven, time-limited script execution contexts that run at an
46 origin. Once successfully [registered][1], a Service Worker is started, kept 46 origin. Once successfully [registered][1], a Service Worker is started, kept
47 alive and killed by their relationship to events, not documents. Any type of 47 alive and killed by their relationship to events, not documents. Any type of
48 synchronous requests MUST NOT be initiated inside of a Service Worker. 48 synchronous requests MUST NOT be initiated inside of a Service Worker.
49 49
50 [1]: #navigator-service-worker-register 50 [1]: #navigator-service-worker-register
51 --> 51 -->
52 52
53 53
54 <script type=text/plain id="untested_idls"> 54 <script type=text/plain id="untested_idls">
55 interface CacheStorage {}; 55 interface CacheStorage {};
56 interface ServiceWorkerClients {}; 56 interface ServiceWorkerClients {};
57 interface Request {}; 57 interface Request {};
58 interface ScalarValueString {}; 58 interface ScalarValueString {};
59 interface EventHandler {}; 59 interface EventHandler {};
60 interface WorkerGlobalScope {}; 60 interface WorkerGlobalScope {};
61 </pre> 61 </script>
62 62
63 <script> 63 <script>
64 var idl_array = new IdlArray(); 64 var idl_array = new IdlArray();
65 idl_array.add_untested_idls(document.getElementById("untested_idls").tex tContent); 65 idl_array.add_untested_idls(document.getElementById("untested_idls").tex tContent);
66 idl_array.add_idls(document.getElementById("idl_0").textContent); 66 idl_array.add_idls(document.getElementById("idl_0").textContent);
67 idl_array.add_objects({ 67 idl_array.add_objects({
68 ServiceWorkerGlobalScope: ["throw new Error ('No object defined for the ServiceWorkerGlobalScope interface')"] 68 ServiceWorkerGlobalScope: ["throw new Error ('No object defined for the ServiceWorkerGlobalScope interface')"]
69 }); 69 });
70 idl_array.test(); 70 idl_array.test();
71 </script> 71 </script>
72 72
73 </body> 73 </body>
74 </html> 74 </html>
75 75
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698