2 <script src="/js-test-resources/js-test.js"></script>
6 var xhr = new XMLHttpRequest();
7 xhr.responseType = 'document';
8 xhr.onreadystatechange = function () {
9 if (this.readyState == XMLHttpRequest.LOADING) {
11 requestAnimationFrame(function() {
12 debug("PASS if no crash or leak.");
13 testRunner.notifyDone();
18 xhr.open("GET", "resources/small-chunks.cgi", true);