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

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

Issue 2875383002: Upstream service worker `postMessage` tests to WPT (Closed)
Patch Set: Incorporate review feedback Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/postmessage-transferables-worker.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/postmessage-worker.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/postmessage-worker.js b/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/postmessage-worker.js
deleted file mode 100644
index 858cf04267c24cf888dbfe8f52d18162f0c2f48e..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/postmessage-worker.js
+++ /dev/null
@@ -1,19 +0,0 @@
-var port;
-
-// Exercise the 'onmessage' handler:
-self.onmessage = function(e) {
- var message = e.data;
- if ('port' in message) {
- port = message.port;
- }
-};
-
-// And an event listener:
-self.addEventListener('message', function(e) {
- var message = e.data;
- if ('value' in message) {
- port.postMessage('Acking value: ' + message.value);
- } else if ('done' in message) {
- port.postMessage('quit');
- }
- });
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/postmessage-transferables-worker.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698