tor-browser

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

test_ByteString.html (778B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <!--
      4 https://bugzilla.mozilla.org/show_bug.cgi?id=796850
      5 -->
      6 <head>
      7  <meta charset="utf-8">
      8  <title>Test for ByteString support</title>
      9  <script src="/tests/SimpleTest/SimpleTest.js"></script>
     10  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
     11 </head>
     12 <body>
     13 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=796850">Mozilla Bug 796850</a>
     14 <p id="display"></p>
     15 <pre id="test">
     16 <script type="application/javascript">
     17 
     18  /** Test for Bug 796850 */
     19  var xhr = new XMLHttpRequest();
     20  var caught = false;
     21  try {
     22    xhr.open("\u5427", "about:mozilla", true);
     23  } catch (TypeError) {
     24    caught = true;
     25  }
     26  ok(caught, "Character values > 255 not rejected for ByteString");
     27 
     28 </script>
     29 </pre>
     30 </body>
     31 </html>