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

Unified Diff: LayoutTests/http/tests/serviceworker/resources/hello-world-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/hello-world-worker.js
diff --git a/LayoutTests/http/tests/serviceworker/resources/hello-world-worker.js b/LayoutTests/http/tests/serviceworker/resources/hello-world-worker.js
new file mode 100644
index 0000000000000000000000000000000000000000..699c50206654b34f11840d8fd76bb560d24d7470
--- /dev/null
+++ b/LayoutTests/http/tests/serviceworker/resources/hello-world-worker.js
@@ -0,0 +1,3 @@
+self.addEventListener('fetch', function(event) {
+ event.respondWith(new Response(new Blob(["hello, world"])));
jsbell 2014/06/02 23:27:34 This is just so awesome to see working! :)
falken 2014/06/03 02:26:30 Yay!
+});

Powered by Google App Engine
This is Rietveld 408576698