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

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

Issue 2763113002: Upstream service worker postMessage tests to WPT (Closed)
Patch Set: 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/postmessage-ping-worker.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/resources/postmessage-ping-worker.js b/third_party/WebKit/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/resources/postmessage-ping-worker.js
deleted file mode 100644
index ebb1eccce2da61484e7b23d5cdda7d6898acf3bd..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/resources/postmessage-ping-worker.js
+++ /dev/null
@@ -1,15 +0,0 @@
-self.addEventListener('message', function(event) {
- if ('port' in event.data) {
- var port = event.data.port;
-
- var channel = new MessageChannel();
- channel.port1.onmessage = function(event) {
- if ('pong' in event.data)
- port.postMessage(event.data.pong);
- };
-
- // Send a ping message to another service worker.
- self.registration.waiting.postMessage({ping: channel.port2},
- [channel.port2]);
- }
- });

Powered by Google App Engine
This is Rietveld 408576698