3 <p>This test that the abort event is fired for XMLHttpRequests when calling xhr.abort()
</p>
4 <pre id='console'
></pre>
5 <script type=
"text/javascript">
6 if (window
.testRunner
) {
7 testRunner
.dumpAsText();
8 testRunner
.waitUntilDone();
13 document
.getElementById('console').appendChild(document
.createTextNode(message
+ "\n"));
18 function abortHandler(evt
)
20 log("PASS: abort event fired.");
21 if (window
.testRunner
)
22 testRunner
.notifyDone();
25 xhr
= new XMLHttpRequest
;
26 xhr
.onabort
= abortHandler
;
27 xhr
.open("GET", "resources/endlessxml.php", true);