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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/navigation-redirect-to-http-worker.js

Issue 2872363002: Upstream service worker navigation tests to WPT (Closed)
Patch Set: 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
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));
- });
- }));
- });

Powered by Google App Engine
This is Rietveld 408576698