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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-request-header-sorted.html

Issue 1810453002: Layout test: Check that simple headers are also included in Access-Control-Request-Headers header (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/xmlhttprequest/resources/access-control-preflight-request-header-sorted.php » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-request-header-sorted.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-request-header-sorted.html b/third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-request-header-sorted.html
index 7814982ebed4ba095d0b76f5ca85ce4de4429484..0d00285e8668bb87185204f869238064bfc8befb 100644
--- a/third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-request-header-sorted.html
+++ b/third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-request-header-sorted.html
@@ -16,6 +16,9 @@ function sendRequest()
xhr.setRequestHeader("X-Custom-V", "foobar");
xhr.setRequestHeader("X-Custom-s", "foobar");
xhr.setRequestHeader("X-Custom-U", "foobar");
+ // Check that a simple header is also included in the
+ // Access-Control-Request-Headers header.
+ xhr.setRequestHeader("Content-Type", "text/plain");
xhr.onerror = function() {
document.body.appendChild(document.createTextNode("FAIL: onerror called"));
if (window.testRunner)
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/resources/access-control-preflight-request-header-sorted.php » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698