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

Unified Diff: third_party/WebKit/LayoutTests/external/wpt/preload/resources/fetch-destination-worker.js

Issue 2642393002: Import wpt@40665266227e475bc4a56884247d8c09d78dfb6a (Closed)
Patch Set: rebaseline-cl Created 3 years, 11 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/external/wpt/preload/resources/fetch-destination-worker.js
diff --git a/third_party/WebKit/LayoutTests/external/wpt/preload/resources/fetch-destination-worker.js b/third_party/WebKit/LayoutTests/external/wpt/preload/resources/fetch-destination-worker.js
new file mode 100644
index 0000000000000000000000000000000000000000..57b259e0bf5af67d0bd43d87eee2c208469ef555
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/external/wpt/preload/resources/fetch-destination-worker.js
@@ -0,0 +1,9 @@
+self.addEventListener('fetch', function(event) {
+ if (event.request.url.indexOf('dummy.xml') != -1) {
+ if (!event.request.destination || event.request.destination == "")
+ event.respondWith(new Response());
+ else
+ event.respondWith(Response.error());
+ }
+});
+

Powered by Google App Engine
This is Rietveld 408576698