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!'); |
+ }); |
+}); |