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

Unified Diff: third_party/WebKit/LayoutTests/external/wpt/workers/support/WorkerFetchURL.js

Issue 2695093003: Add LayoutTests to test Blob URL transfer to {Shared,Service}Workers (Closed)
Patch Set: . Created 3 years, 10 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/external/wpt/workers/SharedWorker_blobUrl.html ('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/external/wpt/workers/support/WorkerFetchURL.js
diff --git a/third_party/WebKit/LayoutTests/external/wpt/workers/support/WorkerFetchURL.js b/third_party/WebKit/LayoutTests/external/wpt/workers/support/WorkerFetchURL.js
new file mode 100644
index 0000000000000000000000000000000000000000..4ad700bcce464611b3c3f07e8555b4c6ccb6cfd6
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/external/wpt/workers/support/WorkerFetchURL.js
@@ -0,0 +1,8 @@
+onconnect = e => {
+ let port = e.ports[0];
+ port.onmessage = (e) => {
+ fetch(e.data)
+ .then(response => response.text())
+ .then(text => port.postMessage('Worker reply:' + text));
+ };
+}
« no previous file with comments | « third_party/WebKit/LayoutTests/external/wpt/workers/SharedWorker_blobUrl.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698