Index: LayoutTests/http/tests/serviceworker/resources/end-to-end-worker.js |
diff --git a/LayoutTests/http/tests/serviceworker/resources/end-to-end-worker.js b/LayoutTests/http/tests/serviceworker/resources/end-to-end-worker.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..0a269cd200fa8f25265978dc9842d42dd803e266 |
--- /dev/null |
+++ b/LayoutTests/http/tests/serviceworker/resources/end-to-end-worker.js |
@@ -0,0 +1,7 @@ |
+onmessage = function(e) { |
+ var message = e.data; |
+ if (typeof message === 'object' && 'port' in message) { |
+ var response = 'Ack for: ' + message.from; |
+ message.port.postMessage(response); |
+ } |
+}; |