blob: ad3ff142404a653ebedd833de06f9a13cfa23685 [file] [log] [blame]
This tests that the XMLHttpRequest responseType attribute is modifiable in the HEADERS_RECEIVED state.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
xhr.responseType = 'document';
PASS xhr.responseType = 'text'; threw exception InvalidStateError (DOM Exception 11): The object is in an invalid state..
PASS xhr.responseType = 'text'; threw exception InvalidStateError (DOM Exception 11): The object is in an invalid state..
PASS xhr.response === xhr.responseXML is true
PASS xhr.responseType is "document"
PASS successfullyParsed is true
TEST COMPLETE