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

Unified Diff: LayoutTests/http/tests/fetch/script-tests/request.js

Issue 1060033002: Implement Request.context for Fetch API (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 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/fetch/script-tests/request.js
diff --git a/LayoutTests/http/tests/fetch/script-tests/request.js b/LayoutTests/http/tests/fetch/script-tests/request.js
index 1f736874cf3220723030df931858383b83f64ee1..0d27bd37e0e86b98bdd9805b3b47b10e2a9fb9ff 100644
--- a/LayoutTests/http/tests/fetch/script-tests/request.js
+++ b/LayoutTests/http/tests/fetch/script-tests/request.js
@@ -715,4 +715,11 @@ promise_test(function(t) {
});
}, 'Extract a MIME type (2)');
+// Tests for requests context.
+test(function() {
+ var request = new Request('http://localhost/', {method: 'POST', body: ''});
+ assert_equals(request.context, '',
+ 'Request.context should be empty string for synthetic Request object');
hiroshige 2015/04/09 17:43:21 nit: please wrap to 80 columns, e.g.
shiva.jm 2015/04/10 09:27:10 Done.
+ }, 'RequestContext of a synthetic Request object');
+
done();

Powered by Google App Engine
This is Rietveld 408576698