Chromium Code Reviews| 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..29ff60393824d2db3e7b8e01c8904a22a16c8c5e |
| --- /dev/null |
| +++ b/LayoutTests/http/tests/serviceworker/resources/fail-on-fetch-worker.js |
| @@ -0,0 +1,5 @@ |
| +importScripts('worker-test-harness.js'); |
|
horo
2014/09/25 09:49:00
importScripts('worker-test-harness.js');
this.add
dmurph
2014/09/26 17:42:02
Done.
|
| + |
| +this.addEventListener('fetch', function(event) { |
| + event.respondWith(new Response("ERROR")); |
|
horo
2014/09/25 09:49:00
+2 indent space
horo
2014/09/25 09:49:00
use single-quotes
dmurph
2014/09/26 17:42:02
Done.
dmurph
2014/09/26 17:42:02
Done.
|
| +}); |
|
horo
2014/09/25 09:49:00
+2 indent space
dmurph
2014/09/26 17:42:02
Done.
|