3 <script type=
"text/javascript">
4 function loadXMLDoc() {
6 if (window
.testRunner
) {
7 testRunner
.dumpAsText();
8 testRunner
.waitUntilDone();
12 var xmlhttp
= new XMLHttpRequest();
13 xmlhttp
.onreadystatechange = function() {
14 if (xmlhttp
.readyState
) {
15 res
= res
+ xmlhttp
.readyState
;
16 if(res
== "124" && xmlhttp
.status
== 404) {
17 document
.getElementById('result').innerText
= "PASS";
19 if (window
.testRunner
)
20 testRunner
.notifyDone();
25 xmlhttp
.open("GET", "resources/status-404-without-body.php", true);
30 <body onload=
"loadXMLDoc()">
31 <p>This tests the readyState of a XMLHttpRequset which is sended with a
"GET" method. And the response's status is
404 without body.
</p>
32 <p id=
"result">FAIL
</p>