| OLD | NEW |
| 1 Tests XMLHttpRequest 'text' loading with the .responseType and .response attribu
tes. | 1 Tests XMLHttpRequest 'text' loading with the .responseType and .response attribu
tes. |
| 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 responseText | 5 responseText |
| 6 <?xml version="1.0"?> | 6 <?xml version="1.0"?> |
| 7 <!DOCTYPE doc [ | 7 <!DOCTYPE doc [ |
| 8 <!ATTLIST d id ID #IMPLIED> | 8 <!ATTLIST d id ID #IMPLIED> |
| 9 ]> | 9 ]> |
| 10 <doc> | 10 <doc> |
| 11 <foo xmlns="foobar">One</foo> <x:bar xmlns:x="barfoo">Two</x:bar> | 11 <foo xmlns="foobar">One</foo> <x:bar xmlns:x="barfoo">Two</x:bar> |
| 12 <d id="id3">Three</d> | 12 <d id="id3">Three</d> |
| 13 </doc> | 13 </doc> |
| 14 | 14 |
| 15 PASS responseType property exists. | 15 PASS responseType property exists. |
| 16 PASS response property exists. | 16 PASS response property exists. |
| 17 PASS xhr.responseType has been correctly set to 'text'. | 17 PASS xhr.responseType has been correctly set to 'text'. |
| 18 PASS DONE LOADING | 18 PASS DONE LOADING |
| 19 PASS received response object of type : string. | 19 PASS received response object of type : string. |
| 20 PASS exception correctly thrown when xhr.responseType is set to valid value too
late in the loading process : InvalidStateError: An attempt was made to use an o
bject that is not, or is no longer, usable.. | 20 PASS exception correctly thrown when xhr.responseType is set to valid value too
late in the loading process : InvalidStateError: Failed to set the 'responseType
' property on 'XMLHttpRequest': the response type cannot be set if the object's
state is LOADING or DONE.. |
| 21 PASS xhr.response == xhr.responseText. | 21 PASS xhr.response == xhr.responseText. |
| 22 PASS successfullyParsed is true | 22 PASS successfullyParsed is true |
| 23 | 23 |
| 24 TEST COMPLETE | 24 TEST COMPLETE |
| 25 | 25 |
| OLD | NEW |