tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

open-method-case-sensitive.htm (961B)


      1 <!DOCTYPE html>
      2 <html>
      3  <head>
      4    <title>XMLHttpRequest: open() - case-sensitive methods test</title>
      5    <script src="/resources/testharness.js"></script>
      6    <script src="/resources/testharnessreport.js"></script>
      7    <link rel="help" href="https://xhr.spec.whatwg.org/#the-open()-method" data-tested-assertations="following::ol/li[5]" />
      8  </head>
      9  <body>
     10    <div id="log"></div>
     11    <script>
     12      function method(method) {
     13        test(function() {
     14          var client = new XMLHttpRequest()
     15          client.open(method, "resources/content.py", false)
     16          client.send(null)
     17          assert_equals(client.getResponseHeader("x-request-method"), method)
     18        }, document.title + " (" + method + ")")
     19      }
     20      method("XUNICORN")
     21      method("xUNIcorn")
     22      method("chiCKEN")
     23      method("PATCH")
     24      method("patCH")
     25      method("copy")
     26      method("COpy")
     27      method("inDEX")
     28      method("movE")
     29    </script>
     30  </body>
     31 </html>