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

Side by Side Diff: LayoutTests/fast/xmlhttprequest/xmlhttprequest-open-exceptions-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 CONSOLE ERROR: Refused to connect to 'http://not.example.com/' because it violat es the following Content Security Policy directive: "connect-src http://example. com". 1 CONSOLE ERROR: Refused to connect to 'http://not.example.com/' because it violat es the following Content Security Policy directive: "connect-src http://example. com".
2 2
3 This tests that exceptions thrown by XHR.open() have reasonable messages. 3 This tests that exceptions thrown by XHR.open() have reasonable messages.
4 4
5 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 5 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
6 6
7 7
8 PASS xhrException.message is "Failed to execute 'open' on 'XMLHttpRequest': 'TRA CE' HTTP method is unsupported." 8 PASS xhrException.message is "Failed to execute 'open' on 'XMLHttpRequest': 'TRA CE' HTTP method is unsupported."
9 PASS xhrException.message is "Refused to connect to 'http://not.example.com/' be cause it violates the document's Content Security Policy." 9 PASS xhrException.message is "Failed to execute 'open' on 'XMLHttpRequest': Refu sed to connect to 'http://not.example.com/' because it violates the document's C ontent Security Policy."
10 PASS xhr.readyState is XMLHttpRequest.UNSENT 10 PASS xhr.readyState is XMLHttpRequest.UNSENT
11 PASS xhr.open('GET', 'resources/xmlhttprequest-get-data.xml', true, badString, ' password'); threw exception Exception in toString(). 11 PASS xhr.open('GET', 'resources/xmlhttprequest-get-data.xml', true, badString, ' password'); threw exception Exception in toString().
12 PASS xhr.readyState is XMLHttpRequest.UNSENT 12 PASS xhr.readyState is XMLHttpRequest.UNSENT
13 PASS xhr.open('GET', 'resources/xmlhttprequest-get-data.xml', true, 'username', badString); threw exception Exception in toString(). 13 PASS xhr.open('GET', 'resources/xmlhttprequest-get-data.xml', true, 'username', badString); threw exception Exception in toString().
14 PASS xhr.readyState is XMLHttpRequest.UNSENT 14 PASS xhr.readyState is XMLHttpRequest.UNSENT
15 PASS successfullyParsed is true 15 PASS successfullyParsed is true
16 16
17 TEST COMPLETE 17 TEST COMPLETE
18 18
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698