| Index: LayoutTests/fast/events/event-on-xhr-document.html
|
| diff --git a/LayoutTests/fast/events/event-on-xhr-document.html b/LayoutTests/fast/events/event-on-xhr-document.html
|
| index b7e21cb1bd8aa4f399bc8fa10cbc855873201a65..9cb4e196c3e0c586ff76571d824fae3c58a269c8 100644
|
| --- a/LayoutTests/fast/events/event-on-xhr-document.html
|
| +++ b/LayoutTests/fast/events/event-on-xhr-document.html
|
| @@ -31,16 +31,22 @@ function testEventsFiredOn(doc)
|
| shouldBe("window.caughtFoo", "[]");
|
| }
|
|
|
| +window.jsTestIsAsync = true;
|
| +
|
| var xhrForXML = new XMLHttpRequest();
|
| xhrForXML.open("GET", "resources/hello-xhr-event.xml", false);
|
| xhrForXML.send();
|
| testEventsFiredOn(xhrForXML.responseXML);
|
|
|
| +// Must run asynchronous to use responseType.
|
| var xhrForHTML = new XMLHttpRequest();
|
| -xhrForHTML.open("GET", "resources/hello-xhr-event.html", false);
|
| +xhrForHTML.open("GET", "resources/hello-xhr-event.html", true);
|
| xhrForHTML.responseType = "document";
|
| +xhrForHTML.onload = function() {
|
| + testEventsFiredOn(xhrForHTML.response);
|
| + finishJSTest();
|
| +};
|
| xhrForHTML.send();
|
| -testEventsFiredOn(xhrForHTML.response);
|
|
|
| </script>
|
| </body>
|
|
|