test_bug638112.html (1179B)
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 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"> 20 21 /** Test for Bug 638112, revised for Bug 796850 */ 22 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 */ 26 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; 32 33 is(statusText, "Information Sans-Autorit\u00E9", ""); 34 35 SimpleTest.finish(); 36 } 37 38 39 SimpleTest.waitForExplicitFinish(); 40 41 addLoadEvent(run_test); 42 43 </script> 44 </pre> 45 </body> 46 </html>