blob: 3d218525a5eee333169a11cb61f31eab4f4dc345 [file] [log] [blame]
Tests XMLHttpRequest 'text' loading with the .responseType and .response attributes.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
responseText
<?xml version="1.0"?>
<!DOCTYPE doc [
<!ATTLIST d id ID #IMPLIED>
]>
<doc>
<foo xmlns="foobar">One</foo> <x:bar xmlns:x="barfoo">Two</x:bar>
<d id="id3">Three</d>
</doc>
PASS responseType property exists.
PASS response property exists.
PASS xhr.responseType has been correctly set to 'text'.
PASS DONE LOADING
PASS received response object of type : string.
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 object that is not, or is no longer, usable..
PASS xhr.response == xhr.responseText.
PASS successfullyParsed is true
TEST COMPLETE