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

Unified Diff: LayoutTests/http/tests/serviceworker/resources/response-worker.js

Issue 337793003: ServiceWorker: Spec alignment tweaks for Request/Response objects (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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/response-worker.js
diff --git a/LayoutTests/http/tests/serviceworker/resources/response-worker.js b/LayoutTests/http/tests/serviceworker/resources/response-worker.js
index e80e2a932810809a631bc62a154d66aa65925f0e..1c493f67e8df01e5e543edc1b8266f2e98987c7f 100644
--- a/LayoutTests/http/tests/serviceworker/resources/response-worker.js
+++ b/LayoutTests/http/tests/serviceworker/resources/response-worker.js
@@ -19,4 +19,12 @@ test(function() {
// Note: detailed behavioral tests for HeaderMap are in another test,
// http/tests/serviceworker/headermap.html.
+ response.status = 123;
+ response.statusText = 'Sesame Street';
+ assert_equals(response.status, 123, 'Response.status should be writable');
+ assert_equals(response.statusText, 'Sesame Street', 'Response.statusText should be writable');
+
+ assert_throws({name:'TypeError'}, function() { response.statusText = 'invalid \u0100'; },
+ 'Response.statusText should throw on invalid ByteString');
+
}, 'Response in ServiceWorkerGlobalScope');
« no previous file with comments | « LayoutTests/http/tests/serviceworker/resources/request-worker.js ('k') | Source/modules/serviceworkers/Request.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698