content/base/test/test_bug638112.html

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

     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