| <!DOCTYPE html> | |
| <script src="/js-test-resources/js-test.js"></script> | |
| <script> | |
| jsTestIsAsync = true; | |
| var xhr = new XMLHttpRequest(); | |
| xhr.responseType = 'document'; | |
| xhr.onreadystatechange = function () { | |
| if (this.readyState == XMLHttpRequest.LOADING) { | |
| xhr.abort(); | |
| requestAnimationFrame(function() { | |
| debug("PASS if no crash or leak."); | |
| testRunner.notifyDone(); | |
| }); | |
| } | |
| }; | |
| xhr.open("GET", "resources/small-chunks.cgi", true); | |
| xhr.send(null); | |
| </script> |