Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / xmlhttprequest / xmlhttprequest-responseXML-nopartial.html
blob30924e285c2b0b24778f42632c33060f3a2f6412
1 <!DOCTYPE html>
2 <script src="/js-test-resources/js-test.js"></script>
3 <script>
4 jsTestIsAsync = true;
6 var xhr = new XMLHttpRequest();
7 xhr.responseType = 'document';
8 xhr.onreadystatechange = function () {
9 if (this.readyState != XMLHttpRequest.DONE) {
10 // avoid showing PASS messages via shouldBeNull, as we have no guarantee how many 'readystatechange' we would receive.
11 if (xhr.responseXML !== null)
12 testFailed("response HTML was visible before DONE")
13 return;
16 shouldBeNonNull("xhr.responseXML");
17 testRunner.notifyDone();
20 xhr.open("GET", "resources/small-chunks.cgi", true);
21 xhr.send(null);
22 </script>