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

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

Issue 304233017: ServiceWorker: Add layout tests for fetch event response (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: forgot null-response-body-worker.js Created 6 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: LayoutTests/http/tests/serviceworker/resources/reject-fetch-event-worker.js
diff --git a/LayoutTests/http/tests/serviceworker/resources/reject-fetch-event-worker.js b/LayoutTests/http/tests/serviceworker/resources/reject-fetch-event-worker.js
new file mode 100644
index 0000000000000000000000000000000000000000..e8c1e834d7ed202f0a466d7486b770b9fe5d0bf9
--- /dev/null
+++ b/LayoutTests/http/tests/serviceworker/resources/reject-fetch-event-worker.js
@@ -0,0 +1,5 @@
+self.addEventListener('fetch', function(event) {
+ event.respondWith(new Promise(resolve, reject) {
+ reject('rejected!');
+ });
+});

Powered by Google App Engine
This is Rietveld 408576698