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

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

Issue 206223005: Forbid setting responseType on all sync XHRs. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix tests that set responseType on sync XHRs. Created 6 years, 9 months 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 not modifiable for synchronous HTTP(S) requests. 1 This tests that the XMLHttpRequest responseType attribute is not modifiable for synchronous HTTP(S) requests.
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 PASS xhr.responseType = 'document'; threw exception InvalidAccessError: Failed t o set the 'responseType' property on 'XMLHttpRequest': The response type can onl y be changed for asynchronous HTTP requests made from a document.. 6 PASS xhr.responseType = 'document'; threw exception InvalidAccessError: Failed t o set the 'responseType' property on 'XMLHttpRequest': The response type can onl y be changed for asynchronous HTTP requests made from a document..
7 PASS xhr.responseType = 'document'; threw exception InvalidAccessError: Failed t o set the 'responseType' property on 'XMLHttpRequest': The response type can onl y be changed for asynchronous HTTP requests made from a document.. 7 PASS xhr.responseType = 'document'; threw exception InvalidAccessError: Failed t o set the 'responseType' property on 'XMLHttpRequest': The response type can onl y be changed for asynchronous HTTP requests made from a document..
8 PASS window.location.protocol is "file:" 8 PASS window.location.protocol is "file:"
9 xhr.responseType = 'document'; 9 PASS xhr.responseType = 'document'; threw exception InvalidAccessError: Failed t o set the 'responseType' property on 'XMLHttpRequest': The response type can onl y be changed for asynchronous HTTP requests made from a document..
10 PASS xhr.responseType is "document" 10 PASS xhr.responseType = 'document'; threw exception InvalidAccessError: Failed t o set the 'responseType' property on 'XMLHttpRequest': The response type can onl y be changed for asynchronous HTTP requests made from a document..
11 xhr.responseType = 'document';
12 PASS xhr.responseType is "document"
13 PASS successfullyParsed is true 11 PASS successfullyParsed is true
14 12
15 TEST COMPLETE 13 TEST COMPLETE
16 14
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698