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

Unified Diff: LayoutTests/http/tests/fetch/chromium/error-messages.html

Issue 1018903002: Show deprecation warnings for header values in XHR according to RFC 7230 (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 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/chromium/error-messages.html
diff --git a/LayoutTests/http/tests/fetch/chromium/error-messages.html b/LayoutTests/http/tests/fetch/chromium/error-messages.html
index c153cef2cde43793c06e2c72aef290b592fb086f..970039c439cdb518372f2b8973b10148682f023c 100644
--- a/LayoutTests/http/tests/fetch/chromium/error-messages.html
+++ b/LayoutTests/http/tests/fetch/chromium/error-messages.html
@@ -42,4 +42,13 @@ promise_test(function(t) {
return fetch('http://localhost:8000/fetch/resources/redirect-loop.php?Count=100&ACAOrigin=*')
.then(t.unreached_func('must reject'), function() {});
}, 'A didFailRedirectCheck() error should output an error message');
+
+promise_test(function(t) {
+ return Promise.resolve()
+ .then(function() {
+ var headers = new Headers();
+ headers.set('a', 't');
+ headers.append('X-Test', 't ');
+ });
+ }, 'A deprecation warning should be output for heders.append and set');
</script>

Powered by Google App Engine
This is Rietveld 408576698