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

Unified Diff: LayoutTests/http/tests/serviceworker/resources/fetch-event-client-attribute-test-worker.js

Issue 1102363002: Add Client Attribute to FetchEvent- Blink Side. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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/fetch-event-client-attribute-test-worker.js
diff --git a/LayoutTests/http/tests/serviceworker/resources/fetch-event-client-attribute-test-worker.js b/LayoutTests/http/tests/serviceworker/resources/fetch-event-client-attribute-test-worker.js
new file mode 100644
index 0000000000000000000000000000000000000000..79c0419780933cdecbf705c5eb53ad28e34f6ed0
--- /dev/null
+++ b/LayoutTests/http/tests/serviceworker/resources/fetch-event-client-attribute-test-worker.js
@@ -0,0 +1,3 @@
+self.addEventListener('fetch', function(event) {
+ event.respondWith(new Response((event.client.frameType).toString()));
jsbell 2015/05/06 16:21:26 Is the (...).toString() part necessary?
Paritosh Kumar 2015/05/07 16:46:54 No. Done.
+});
falken 2015/05/07 04:06:03 indent this two spaces
Paritosh Kumar 2015/05/07 16:46:54 Done.

Powered by Google App Engine
This is Rietveld 408576698