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

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: 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..7a29f114dfd78125a549664eabdb1b1f90902230
--- /dev/null
+++ b/LayoutTests/http/tests/serviceworker/resources/reject-fetch-event-worker.js
@@ -0,0 +1,6 @@
+self.addEventListener('fetch', function(event) {
+ event.respondWith(new Promise(resolve, reject) {
+ reject('rejected!');
+ });
+});
+

Powered by Google App Engine
This is Rietveld 408576698