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

Unified Diff: LayoutTests/http/tests/serviceworker/resources/request-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
« no previous file with comments | « no previous file | LayoutTests/http/tests/serviceworker/resources/response-worker.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/serviceworker/resources/request-worker.js
diff --git a/LayoutTests/http/tests/serviceworker/resources/request-worker.js b/LayoutTests/http/tests/serviceworker/resources/request-worker.js
index 1c69cfd4990bab6ce36a8c11a5e9dfc17d77a122..ef41a3a327d090748a1012b8968e16d26c826e8e 100644
--- a/LayoutTests/http/tests/serviceworker/resources/request-worker.js
+++ b/LayoutTests/http/tests/serviceworker/resources/request-worker.js
@@ -20,4 +20,11 @@ test(function() {
// Note: detailed behavioral tests for HeaderMap are in another test,
// http/tests/serviceworker/headermap.html.
+ request.url = 'http://localhost/';
+ assert_equals(request.url, 'http://localhost/', 'Request.url should be writable');
+ request.method = 'POST';
+ assert_equals(request.method, 'POST', 'Request.method should be writable');
+ assert_throws({name: 'TypeError'}, function() { request.method = 'invalid \u0100'; },
+ 'Request.method should throw on invalid ByteString');
+
}, 'Request in ServiceWorkerGlobalScope');
« no previous file with comments | « no previous file | LayoutTests/http/tests/serviceworker/resources/response-worker.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698