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

Unified Diff: content/test/data/service_worker/sync.js

Issue 299003002: ServiceWorker: support Response.{status,statusText,headers} [chromium] (1/3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: build fix 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
« no previous file with comments | « content/test/data/service_worker/fetch_event.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/data/service_worker/sync.js
diff --git a/content/test/data/service_worker/sync.js b/content/test/data/service_worker/sync.js
index 993e771778a505bc5ff78dedbe29a9d5655026fd..02da273ab376646fe4f4c2fd0bc282ec0bd2116f 100644
--- a/content/test/data/service_worker/sync.js
+++ b/content/test/data/service_worker/sync.js
@@ -6,13 +6,8 @@ var code = 404;
this.onfetch = function(event) {
response = new Response({
- statusCode: code,
- statusText: 'OK',
- method: 'GET',
- headers: {
- 'Content-Language': 'fi',
- 'Content-Type': 'text/html; charset=UTF-8'
- }
+ status: code,
+ statusText: 'OK'
});
event.respondWith(new Promise(function(r) {
@@ -22,4 +17,4 @@ this.onfetch = function(event) {
this.onsync = function(event) {
code = 200;
-};
+};
« no previous file with comments | « content/test/data/service_worker/fetch_event.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698