2011-05-11 13:46:59 +04:00
|
|
|
<!DOCTYPE HTML>
|
|
|
|
<html>
|
|
|
|
<!--
|
|
|
|
https://bugzilla.mozilla.org/show_bug.cgi?id=638112
|
2013-06-13 09:20:10 +04:00
|
|
|
https://bugzilla.mozilla.org/show_bug.cgi?id=796850
|
2011-05-11 13:46:59 +04:00
|
|
|
-->
|
|
|
|
<head>
|
|
|
|
<title>Test for Bug 638112</title>
|
2019-04-16 06:53:28 +03:00
|
|
|
<script src="/tests/SimpleTest/SimpleTest.js"></script>
|
2011-05-11 13:46:59 +04:00
|
|
|
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=638112">Mozilla Bug 638112</a>
|
2013-06-13 09:20:10 +04:00
|
|
|
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=796850">Mozilla Bug 796850</a>
|
2011-05-11 13:46:59 +04:00
|
|
|
<p id="display"></p>
|
|
|
|
<div id="content" style="display: none">
|
|
|
|
</div>
|
|
|
|
<pre id="test">
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
2013-06-13 09:20:10 +04:00
|
|
|
/** Test for Bug 638112, revised for Bug 796850 **/
|
2013-02-26 06:39:21 +04:00
|
|
|
|
2013-06-13 09:20:10 +04:00
|
|
|
/* Bug 796850 changed the type of statusText to ByteString. As a result it is
|
|
|
|
* now considered to be raw 8 bit encoded rather than UTF8.
|
|
|
|
*/
|
2011-05-11 13:46:59 +04:00
|
|
|
|
|
|
|
function run_test() {
|
|
|
|
var req = new XMLHttpRequest();
|
|
|
|
req.open("GET", "bug638112.sjs", false);
|
|
|
|
req.send(null);
|
|
|
|
var statusText = req.statusText;
|
|
|
|
|
2013-06-13 09:20:10 +04:00
|
|
|
is(statusText, "Information Sans-Autorit\u00E9", "");
|
2011-05-11 13:46:59 +04:00
|
|
|
|
|
|
|
SimpleTest.finish();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
SimpleTest.waitForExplicitFinish();
|
|
|
|
|
|
|
|
addLoadEvent(run_test);
|
|
|
|
|
|
|
|
</script>
|
|
|
|
</pre>
|
|
|
|
</body>
|
|
|
|
</html>
|