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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/resources/extendable-message-event-ping-worker.js

Issue 2751113005: Upstream service worker message event tests to WPT (Closed)
Patch Set: Remove redundant comment Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/resources/extendable-message-event-ping-worker.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/resources/extendable-message-event-ping-worker.js b/third_party/WebKit/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/resources/extendable-message-event-ping-worker.js
deleted file mode 100644
index eb3f06486655e4b2539068c8394b97e02f6b62be..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/resources/extendable-message-event-ping-worker.js
+++ /dev/null
@@ -1,26 +0,0 @@
-self.addEventListener('message', function(event) {
- switch (event.data.type) {
- case 'start':
- // Send a ping message to another service worker.
- self.registration.waiting.postMessage(
- {type: 'ping', client_id: event.source.id});
- break;
- case 'pong':
- var results = [
- 'Pong message: ' + event,
- ' event.origin: ' + event.origin,
- ' event.lastEventId: ' + event.lastEventId,
- ' event.source: ' + event.source,
- ' event.source.scriptURL: ' + event.source.scriptURL,
- ' event.source.state: ' + event.source.state,
- ' event.ports: ' + event.ports,
- ];
- var client_id = event.data.client_id;
- event.waitUntil(clients.get(client_id)
- .then(function(client) {
- client.postMessage({type: 'record', results: results});
- client.postMessage({type: 'finish'});
- }));
- break;
- }
- });

Powered by Google App Engine
This is Rietveld 408576698