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

Side by Side Diff: LayoutTests/fast/xmlhttprequest/xmlhttprequest-open-exceptions-expected.txt

Issue 23041002: Improve 'XMLHttpRequest' exception messages. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: ExceptionMessages. Created 7 years, 4 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 | Annotate | Revision Log
OLDNEW
1 CONSOLE MESSAGE: Refused to connect to 'http://not.example.com/' because it viol ates the following Content Security Policy directive: "connect-src http://exampl e.com". 1 CONSOLE MESSAGE: Refused to connect to 'http://not.example.com/' because it viol ates the following Content Security Policy directive: "connect-src http://exampl e.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 "'XMLHttpRequest.open' does not support the 'TRACE' method." 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 "Refused to connect to 'http://not.example.com/' be cause it violates the document's Content Security Policy."
10 PASS successfullyParsed is true 10 PASS successfullyParsed is true
11 11
12 TEST COMPLETE 12 TEST COMPLETE
13 13
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698