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

Unified Diff: LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-open-method-case-insensitive.html

Issue 347653003: XMLHttpRequest must build a request using the given method as-is for non-standard types (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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/xmlhttprequest/xmlhttprequest-open-method-case-insensitive.html
diff --git a/LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-open-method-case-insensitive.html b/LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-open-method-case-insensitive.html
new file mode 100644
index 0000000000000000000000000000000000000000..355eb37da406a410a26341c80680e6d922b102a0
--- /dev/null
+++ b/LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-open-method-case-insensitive.html
@@ -0,0 +1,36 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>XMLHttpRequest: open() - case-insensitive methods test</title>
+ </head>
+ <body>
+ <p>Not matching method names should be returned as is per step-5 of http://xhr.spec.whatwg.org/#the-open()-method.</p>
+ <div id="log"></div>
+ <script>
+ if (window.testRunner)
+ window.testRunner.dumpAsText();
+
+ function log(message) {
+ document.getElementById("log").appendChild(document.createTextNode(message));
+ document.getElementById("log").appendChild(document.createElement("br"));
+ }
+ function method(method) {
sof 2014/06/19 06:19:50 method => verb
maheshkk 2014/06/19 19:33:53 Done.
+ var client = new XMLHttpRequest()
sof 2014/06/19 06:19:50 Use ";" consistently
maheshkk 2014/06/19 19:33:53 Done.
+ client.open(method, "resources/request-method.php", false)
+ client.send(null)
+ log(client.getResponseHeader("x-custom-request-method"))
+ }
+
+ method("XUNICORN")
+ method("xUNIcorn")
+ method("chiCKEN")
+ method("PATCH")
+ method("patCH")
+ method("copy")
+ method("COpy")
+ method("inDEX")
+ method("movE")
+ </script>
+ </body>
+</html>
+

Powered by Google App Engine
This is Rietveld 408576698