5 if (window
.testRunner
) {
6 testRunner
.dumpAsText();
7 testRunner
.waitUntilDone();
12 document
.body
.appendChild(document
.createTextNode(str
));
13 document
.body
.appendChild(document
.createElement("br"));
16 function addElement(e
)
18 var txt
= (e
&& e
.type
) || "insertedText";
21 document
.addEventListener("DOMContentLoaded", addElement
, false);
22 window
.onload
= addElement
;
24 var xhr
= new XMLHttpRequest
;
27 xhr
.open("GET", "", true);
28 xhr
.onreadystatechange = function() {
29 if (xhr
.readyState
!= 4)
31 if (window
.testRunner
)
32 testRunner
.notifyDone();
36 window
.addEventListener("DOMSubtreeModified", sendXHR
);
39 This tests that when we re-entrantly create and cancel XHRs, we don't try to disconnect the same CachedResourceClient
40 multiple times from its CachedResource. We pass if we don't crash.
<br/>