blob: da31404ad7ba0e59362c6ca137e2a5462154bc4b [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<html lang="en-Hixie">
<head>
<title>statusText</title>
</head>
<body>
<p>FAIL: Script did not run.</p>
<script type="text/javascript">
if (window.testRunner)
testRunner.dumpAsText();
var p = document.getElementsByTagName('p')[0];
p.firstChild.data = 'FAIL: Test script did not finish.';
if (!window.XMLHttpRequest)
window.XMLHttpRequest = function () { return new ActiveXObject("Microsoft.XMLHTTP"); }
var r = new XMLHttpRequest();
r.open('GET', '012-test200.asis', false);
r.send(null);
var c = r.statusText;
p.firstChild.data = c == 'Foo widdle waddle!' ? 'PASS' : 'FAIL: "' + c + '"';
</script>
</body>
</html>