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

Unified Diff: LayoutTests/http/tests/xmlhttprequest/method-names-expected.txt

Issue 262173002: Reduce method names converted to upper case via uppercaseKnownHTTPMethod() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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 | « LayoutTests/http/tests/xmlhttprequest/method-names.html ('k') | Source/core/xml/XMLHttpRequest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/xmlhttprequest/method-names-expected.txt
diff --git a/LayoutTests/http/tests/xmlhttprequest/method-names-expected.txt b/LayoutTests/http/tests/xmlhttprequest/method-names-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..295f40c04c0244187f1320a3dc8160bc7e2d46c6
--- /dev/null
+++ b/LayoutTests/http/tests/xmlhttprequest/method-names-expected.txt
@@ -0,0 +1,36 @@
+Test that open() converts only special request methods to uppercase, per http://xhr.spec.whatwg.org/#dom-xmlhttprequest-open
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+Known methods to be converted to upper-case
+PASS req.getResponseHeader('x-request-method') is "DELETE"
+PASS req.responseText is "DELETE"
+PASS req.getResponseHeader('x-request-method') is "GET"
+PASS req.responseText is "GET"
+PASS req.getResponseHeader('x-request-method') is "HEAD"
+PASS req.getResponseHeader('x-request-method') is "OPTIONS"
+PASS req.responseText is "OPTIONS"
+PASS req.getResponseHeader('x-request-method') is "POST"
+PASS req.responseText is "POST"
+PASS req.getResponseHeader('x-request-method') is "PUT"
+PASS req.responseText is "PUT"
+Other methods should be sent as-is
+PASS req.getResponseHeader('x-request-method') is "pAtCH"
+PASS req.responseText is "pAtCH"
+PASS req.getResponseHeader('x-request-method') is "XuniCORn"
+PASS req.responseText is "XuniCORn"
+PASS req.getResponseHeader('x-request-method') is "LOck"
+PASS req.responseText is "LOck"
+PASS req.getResponseHeader('x-request-method') is "LOck"
+PASS req.responseText is "LOck"
+PASS req.getResponseHeader('x-request-method') is "unLOCK"
+PASS req.responseText is "unLOCK"
+PASS req.getResponseHeader('x-request-method') is "m-post"
+PASS req.responseText is "m-post"
+PASS req.getResponseHeader('x-request-method') is "iNdex"
+PASS req.responseText is "iNdex"
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
« no previous file with comments | « LayoutTests/http/tests/xmlhttprequest/method-names.html ('k') | Source/core/xml/XMLHttpRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698