Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(118)

Side by Side Diff: LayoutTests/fast/xmlhttprequest/xmlhttprequest-responsetype-text-expected.txt

Issue 96793002: Switch custom XMLHttpRequest bindings over to new-style ExceptionState. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Inline local binding in throwTypeError() Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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: Failed to set the 'responseType ' property on 'XMLHttpRequest': the response type cannot be set if the object's state is LOADING or DONE.. 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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698