OLD | NEW |
1 <script> | 1 <script> |
2 if (window.layoutTestController) | 2 if (window.layoutTestController) |
3 layoutTestController.dumpAsText(); | 3 layoutTestController.dumpAsText(); |
4 | 4 |
5 function addElement() { | 5 function addElement() { |
6 document.documentElement.appendChild(document.createTextNode('X')); | 6 document.documentElement.appendChild(document.createTextNode('X')); |
7 } | 7 } |
8 document.addEventListener("DOMContentLoaded", addElement, false); | 8 document.addEventListener("DOMContentLoaded", addElement, false); |
9 window.onload = addElement; | 9 window.onload = addElement; |
10 | 10 |
11 var xhr = new XMLHttpRequest; | 11 var xhr = new XMLHttpRequest; |
12 function sendXHR() | 12 function sendXHR() |
13 { | 13 { |
14 xhr.open("GET", "", true); | 14 xhr.open("GET", "", true); |
15 xhr.send(); | 15 xhr.send(); |
16 } | 16 } |
17 window.addEventListener("DOMSubtreeModified", sendXHR); | 17 window.addEventListener("DOMSubtreeModified", sendXHR); |
18 addElement(); | 18 addElement(); |
19 </script> | 19 </script> |
20 This tests that when we re-entrantly create and cancel XHRs, we don't try to dis
connect the same CachedResourceClient | 20 This tests that when we re-entrantly create and cancel XHRs, we don't try to dis
connect the same CachedResourceClient |
21 multiple times from its CachedResource. We pass if we don't crash. | 21 multiple times from its CachedResource. We pass if we don't crash. |
OLD | NEW |