Index: third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/navigation-redirect-to-http-worker.js |
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/navigation-redirect-to-http-worker.js b/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/navigation-redirect-to-http-worker.js |
deleted file mode 100644 |
index 6f2a8ae1d749bb58e547bdb511b895b0e6bdee43..0000000000000000000000000000000000000000 |
--- a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/navigation-redirect-to-http-worker.js |
+++ /dev/null |
@@ -1,22 +0,0 @@ |
-importScripts('/resources/testharness.js'); |
- |
-self.addEventListener('fetch', function(event) { |
- event.respondWith(new Promise(function(resolve) { |
- Promise.resolve() |
- .then(function() { |
- assert_equals( |
- event.request.redirect, 'manual', |
- 'The redirect mode of navigation request must be manual.'); |
- return fetch(event.request); |
- }) |
- .then(function(response) { |
- assert_equals( |
- response.type, 'opaqueredirect', |
- 'The response type of 302 response must be opaqueredirect.'); |
- resolve(new Response('OK')); |
- }) |
- .catch(function(error) { |
- resolve(new Response('Failed in SW: ' + error)); |
- }); |
- })); |
- }); |