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

Unified Diff: LayoutTests/http/tests/serviceworker/resources/fail-on-fetch-worker.js

Issue 600843003: Test of uncontrolled page doing a fetch, which currently hits the sw. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Formatting 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
Index: LayoutTests/http/tests/serviceworker/resources/fail-on-fetch-worker.js
diff --git a/LayoutTests/http/tests/serviceworker/resources/fail-on-fetch-worker.js b/LayoutTests/http/tests/serviceworker/resources/fail-on-fetch-worker.js
new file mode 100644
index 0000000000000000000000000000000000000000..5eb34968b21820784aeb3136953242968dbd57ce
--- /dev/null
+++ b/LayoutTests/http/tests/serviceworker/resources/fail-on-fetch-worker.js
@@ -0,0 +1,5 @@
+importScripts('worker-test-harness.js');
+
+this.addEventListener('fetch', function(event) {
+ event.respondWith(new Response('ERROR'));
+ });

Powered by Google App Engine
This is Rietveld 408576698