3 <pre id='console'
></pre>
4 <script type=
"text/javascript">
7 document
.getElementById('console').appendChild(document
.createTextNode(message
+ "\n"));
10 if (window
.testRunner
) {
11 testRunner
.dumpAsText();
12 testRunner
.waitUntilDone();
16 var xhr
= new XMLHttpRequest
;
18 var errorCalled
= false;
20 function testSuccess() {
22 log("PASS: Timeout override did not reactivate timer after failure");
25 function performAssertions() {
27 log("FAIL: error event not dispatched");
30 if (window
.testRunner
)
31 testRunner
.notifyDone();
34 xhr
.onerror = function() {
39 xhr
.ontimeout = function() {
41 log("FAIL: Timeout override reactivated the timer");
44 xhr
.open("GET", "http://localhost:8000/xmlhttprequest/resources/access-control-basic-denied.cgi");
48 setTimeout(performAssertions
, 200);