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

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 9924e4a423e6fc42115fdd8184cdb7eebf4604ee..823f47446e965b5a1a88c5726804ea9a14fbf929 100644
--- a/LayoutTests/http/tests/fetch/script-tests/request.js
+++ b/LayoutTests/http/tests/fetch/script-tests/request.js
@@ -570,4 +570,12 @@ promise_test(function(t) {
});
}, 'Consume and pass');
+// 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');
+ }, 'RequestContext of a synthetic Request object');
+
done();

Powered by Google App Engine
This is Rietveld 408576698