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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/network/network-disable-cache-cors.html

Issue 1860693004: Allow custom inspector header for CORS preflight. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/network/network-disable-cache-cors-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/http/tests/inspector/network/network-disable-cache-cors.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/network/network-disable-cache-cors.html b/third_party/WebKit/LayoutTests/http/tests/inspector/network/network-disable-cache-cors.html
index 2b096ec0b695d7dc71ff1f17b32462cab275875f..72c5744972520584e6630b3ef10b3634835802ab 100644
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/network/network-disable-cache-cors.html
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/network/network-disable-cache-cors.html
@@ -34,7 +34,13 @@ function step3()
function test()
{
- InspectorTest.NetworkAgent.setCacheDisabled(true, step0);
+ InspectorTest.makeFetch("http://localhost:8080/inspector/network/resources/cors-redirect.cgi", {headers: {"x-test": "redirect"}}, function () {});
+ InspectorTest.makeFetch("http://localhost:8080/inspector/network/resources/cors-redirect.cgi", {}, disableCache);
+
+ function disableCache()
+ {
+ InspectorTest.NetworkAgent.setCacheDisabled(true, step0);
+ }
function step0()
{
@@ -63,6 +69,6 @@ function test()
</script>
</head>
<body onload="runTest()">
-<p>Tests that preflight OPTIONS is always sent if 'Disable cache' is checked.</p>
+<p>Tests that preflight OPTIONS is always sent if 'Disable cache' is checked, and that network instrumentation does not produce errors for redirected preflights.</p>
</body>
</html>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/network/network-disable-cache-cors-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698