OLD | NEW |
1 This tests that the XMLHttpRequest responseType attribute is modifiable in the H
EADERS_RECEIVED state. | 1 This tests that the XMLHttpRequest responseType attribute is modifiable in the H
EADERS_RECEIVED state. |
2 | 2 |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
4 | 4 |
5 | 5 |
6 xhr.responseType = 'document'; | 6 xhr.responseType = 'document'; |
7 PASS xhr.responseType = 'text'; threw exception InvalidStateError: An attempt wa
s made to use an object that is not, or is no longer, usable.. | 7 PASS xhr.responseType = 'text'; threw exception InvalidStateError: Failed to set
the 'responseType' property on 'XMLHttpRequest': the response type cannot be se
t if the object's state is LOADING or DONE.. |
8 PASS xhr.responseType = 'text'; threw exception InvalidStateError: An attempt wa
s made to use an object that is not, or is no longer, usable.. | 8 PASS xhr.responseType = 'text'; threw exception InvalidStateError: Failed to set
the 'responseType' property on 'XMLHttpRequest': the response type cannot be se
t if the object's state is LOADING or DONE.. |
9 PASS xhr.response === xhr.responseXML is true | 9 PASS xhr.response === xhr.responseXML is true |
10 PASS xhr.responseType is "document" | 10 PASS xhr.responseType is "document" |
11 PASS successfullyParsed is true | 11 PASS successfullyParsed is true |
12 | 12 |
13 TEST COMPLETE | 13 TEST COMPLETE |
14 | 14 |
OLD | NEW |