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

Side by Side Diff: LayoutTests/fast/xmlhttprequest/xmlhttprequest-responsetype-set-at-headers-received-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 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: Failed to set the 'responseType' property on 'XMLHttpRequest': the response type cannot be se t if the object's state is LOADING or DONE.. 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: 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: 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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698