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

Unified Diff: LayoutTests/http/tests/serviceworker/resources/fetch-request-xhr-iframe.html

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/serviceworker/resources/fetch-request-xhr-iframe.html
diff --git a/LayoutTests/http/tests/serviceworker/resources/fetch-request-xhr-iframe.html b/LayoutTests/http/tests/serviceworker/resources/fetch-request-xhr-iframe.html
index 7391fe5083e399ad2aa743e1049829884808aedd..55ab3bc685a9ec625aeb557ae4d166e262bb3ec9 100644
--- a/LayoutTests/http/tests/serviceworker/resources/fetch-request-xhr-iframe.html
+++ b/LayoutTests/http/tests/serviceworker/resources/fetch-request-xhr-iframe.html
@@ -57,6 +57,7 @@ function xhr_send(url_base, method, data, with_credentials) {
function string_test() {
return xhr_send(host_info['HTTP_ORIGIN'], 'POST', 'test string', false)
.then(function(response) {
+ assert_equals(response.context, 'xmlhttprequest');
assert_equals(response.method, 'POST');
assert_equals(response.body, 'test string');
});
@@ -66,6 +67,7 @@ function blob_test() {
return xhr_send(host_info['HTTP_ORIGIN'], 'POST', new Blob(['test blob']),
false)
.then(function(response) {
+ assert_equals(response.context, 'xmlhttprequest');
assert_equals(response.method, 'POST');
assert_equals(response.body, 'test blob');
});

Powered by Google App Engine
This is Rietveld 408576698