content/base/test/test_bug638112.html

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 <!DOCTYPE HTML>
     2 <html>
     3 <!--
     4 https://bugzilla.mozilla.org/show_bug.cgi?id=638112
     5 https://bugzilla.mozilla.org/show_bug.cgi?id=796850
     6 -->
     7 <head>
     8   <title>Test for Bug 638112</title>
     9   <script type="text/javascript" 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=638112">Mozilla Bug 638112</a>
    14 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=796850">Mozilla Bug 796850</a>
    15 <p id="display"></p>
    16 <div id="content" style="display: none">
    17 </div>
    18 <pre id="test">
    19 <script type="text/javascript">
    21 /** Test for Bug 638112, revised for Bug 796850 **/
    23 /* Bug 796850 changed the type of statusText to ByteString.  As a result it is
    24  * now considered to be raw 8 bit encoded rather than UTF8.
    25  */
    27 function run_test() {
    28   var req = new XMLHttpRequest();
    29   req.open("GET", "bug638112.sjs", false);
    30   req.send(null);
    31   var statusText = req.statusText;
    33   is(statusText, "Information Sans-Autorit\u00E9", "");
    35   SimpleTest.finish();
    36 }
    39 SimpleTest.waitForExplicitFinish();
    41 addLoadEvent(run_test);
    43 </script>
    44 </pre>
    45 </body>
    46 </html>

mercurial