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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-open-method-case-insensitive.html

Issue 1908613003: Remove superfluous "*-expected.txt" files in LayoutTests/http/tests (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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>XMLHttpRequest: open() - case-insensitive methods test</title> 4 <title>XMLHttpRequest: open() - case-insensitive methods test</title>
5 <script src="../resources/testharness.js"></script> 5 <script src="../resources/testharness.js"></script>
6 <script src="../resources/testharnessreport.js"></script> 6 <script src="../resources/testharnessreport.js"></script>
7 </head> 7 </head>
8 <body> 8 <body>
9 <p>non-standard method names should be returned as is per step-5 of https:// xhr.spec.whatwg.org/#the-open()-method.</p> 9 <p style="visibility: hidden;">non-standard method names should be returned as is per step-5 of https://xhr.spec.whatwg.org/#the-open()-method.</p>
10 <script type="text/javascript"> 10 <script type="text/javascript">
11 function testMethod(methodName, lastTest) { 11 function testMethod(methodName, lastTest) {
12 var client = new XMLHttpRequest(); 12 var client = new XMLHttpRequest();
13 client.open(methodName, "resources/echo-request-method.php"); 13 client.open(methodName, "resources/echo-request-method.php");
14 client.onreadystatechange = function(event) { 14 client.onreadystatechange = function(event) {
15 if (event.target.readyState == 4) 15 if (event.target.readyState == 4)
16 assert_equals(client.getResponseHeader("x-custom-request-method"), m ethodName); 16 assert_equals(client.getResponseHeader("x-custom-request-method"), m ethodName);
17 } 17 }
18 client.send(null); 18 client.send(null);
19 } 19 }
20 20
21 test(function() { testMethod("XUNICORN"); }); 21 test(function() { testMethod("XUNICORN"); });
22 test(function() { testMethod("xUNIcorn"); }); 22 test(function() { testMethod("xUNIcorn"); });
23 test(function() { testMethod("chiCKEN"); }); 23 test(function() { testMethod("chiCKEN"); });
24 test(function() { testMethod("PATCH"); }); 24 test(function() { testMethod("PATCH"); });
25 test(function() { testMethod("patCH"); }); 25 test(function() { testMethod("patCH"); });
26 test(function() { testMethod("copy"); }); 26 test(function() { testMethod("copy"); });
27 test(function() { testMethod("COpy"); }); 27 test(function() { testMethod("COpy"); });
28 test(function() { testMethod("inDEX"); }); 28 test(function() { testMethod("inDEX"); });
29 test(function() { testMethod("movE"); }); 29 test(function() { testMethod("movE"); });
30 </script> 30 </script>
31 </body> 31 </body>
32 </html> 32 </html>
33 33
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698