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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/interfaces-worker.js

Issue 1970003004: Worker: Move close() from WorkerGlobalScope to derived interfaces (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add const Created 4 years, 7 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
1 importScripts('interfaces.js'); 1 importScripts('interfaces.js');
2 importScripts('worker-testharness.js'); 2 importScripts('worker-testharness.js');
3 3
4 var EVENT_HANDLER = 'object'; 4 var EVENT_HANDLER = 'object';
5 5
6 test(function() { 6 test(function() {
7 verify_interface('ServiceWorkerGlobalScope', 7 verify_interface('ServiceWorkerGlobalScope',
8 self, 8 self,
9 { 9 {
10 clients: 'object', 10 clients: 'object',
11 close: 'function',
12 registration: 'object', 11 registration: 'object',
13 skipWaiting: 'function', 12 skipWaiting: 'function',
14 13
15 onactivate: EVENT_HANDLER, 14 onactivate: EVENT_HANDLER,
16 onfetch: EVENT_HANDLER, 15 onfetch: EVENT_HANDLER,
17 oninstall: EVENT_HANDLER, 16 oninstall: EVENT_HANDLER,
18 onmessage: EVENT_HANDLER 17 onmessage: EVENT_HANDLER
19 }); 18 });
20 }, 'ServiceWorkerGlobalScope'); 19 }, 'ServiceWorkerGlobalScope');
21 20
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 true, 107 true,
109 'FetchEvent.isReload with option {isReload: true} should be true'); 108 'FetchEvent.isReload with option {isReload: true} should be true');
110 assert_equals( 109 assert_equals(
111 new FetchEvent( 110 new FetchEvent(
112 'FetchEvent', 111 'FetchEvent',
113 {request: req, isReload: true}).request.url, 112 {request: req, isReload: true}).request.url,
114 'https://www.example.com/', 113 'https://www.example.com/',
115 'FetchEvent.request.url should return the value it was ' + 114 'FetchEvent.request.url should return the value it was ' +
116 'initialized to'); 115 'initialized to');
117 }, 'Event constructors'); 116 }, 'Event constructors');
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698