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

Unified Diff: LayoutTests/http/tests/serviceworker/resources/fetch-event-test-worker.js

Issue 588993002: [ServiceWorker] Remove the test for the rejected result of FetchEvent from fetch-event.html (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 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 | « LayoutTests/http/tests/serviceworker/fetch-event.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/serviceworker/resources/fetch-event-test-worker.js
diff --git a/LayoutTests/http/tests/serviceworker/resources/fetch-event-test-worker.js b/LayoutTests/http/tests/serviceworker/resources/fetch-event-test-worker.js
index 10f8093df43f8d6435a1c9e1203a5f07959f68f6..8cf29a835d10af5ee64850f1c4535028b7fb730b 100644
--- a/LayoutTests/http/tests/serviceworker/resources/fetch-event-test-worker.js
+++ b/LayoutTests/http/tests/serviceworker/resources/fetch-event-test-worker.js
@@ -15,12 +15,6 @@ function handleNullBody(event) {
event.respondWith(new Response(null));
}
-function handleReject(event) {
- event.respondWith(new Promise(function(resolve, reject) {
- reject('rejected!');
- }));
-}
-
function handleFetch(event) {
event.respondWith(fetch('other.html'));
}
@@ -55,7 +49,6 @@ self.addEventListener('fetch', function(event) {
{ pattern: '?referrer', fn: handleReferrer },
{ pattern: '?ignore', fn: function() {} },
{ pattern: '?null', fn: handleNullBody },
- { pattern: '?reject', fn: handleReject },
{ pattern: '?fetch', fn: handleFetch },
{ pattern: '?form-post', fn: handleFormPost },
{ pattern: '?multiple-respond-with', fn: handleMultipleRespondWith }
« no previous file with comments | « LayoutTests/http/tests/serviceworker/fetch-event.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698