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

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

Issue 1287273002: [Fetch] Add a deprecation warning for Request.context (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Provide a link in messages. 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
« no previous file with comments | « no previous file | LayoutTests/http/tests/fetch/chromium/error-messages-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 7c216c7e15e15ff31851734fb809215d1b54788a..31faeff60c0d7ffdfe96bd33f35e4f00f8c03884 100644
--- a/LayoutTests/http/tests/fetch/chromium/error-messages.html
+++ b/LayoutTests/http/tests/fetch/chromium/error-messages.html
@@ -42,4 +42,12 @@ sequential_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');
+
+sequential_promise_test(function(t) {
+ return Promise.resolve()
+ .then(function() {
+ var request = new Request('http://localhost/');
+ request.context;
+ });
+ }, 'A deprecation warning should be output for Request.context');
</script>
« no previous file with comments | « no previous file | LayoutTests/http/tests/fetch/chromium/error-messages-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698