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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/eventsource/eventsource-constructor-expected.txt

Issue 1984483002: [DevTools] Capture call stacks for CSP console messages. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more tests Created 4 years, 7 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 CONSOLE ERROR: Refused to connect to 'http://disallowed.example.com/' because it violates the following Content Security Policy directive: "connect-src http://i nvalid http://127.0.0.1". 1 CONSOLE ERROR: line 40: Refused to connect to 'http://disallowed.example.com/' b ecause it violates the following Content Security Policy directive: "connect-src http://invalid http://127.0.0.1".
2 2
3 Test EventSource constructor functionality. Should print a series of PASS messag es followed by DONE. 3 Test EventSource constructor functionality. Should print a series of PASS messag es followed by DONE.
4 4
5 PASS: missing argument to EventSource constructor resulted in an exception (Type Error: Failed to construct 'EventSource': 1 argument required, but only 0 presen t.) 5 PASS: missing argument to EventSource constructor resulted in an exception (Type Error: Failed to construct 'EventSource': 1 argument required, but only 0 presen t.)
6 PASS: passing an empty string to the EventSource constructor resulted in an exce ption (SyntaxError: Failed to construct 'EventSource': Cannot open an EventSourc e to an empty URL.) 6 PASS: passing an empty string to the EventSource constructor resulted in an exce ption (SyntaxError: Failed to construct 'EventSource': Cannot open an EventSourc e to an empty URL.)
7 PASS: passing an invalid URL to the EventSource constructor resulted in an excep tion (SyntaxError: Failed to construct 'EventSource': Cannot open an EventSource to 'http://webserver:eighty/'. The URL is invalid.) 7 PASS: passing an invalid URL to the EventSource constructor resulted in an excep tion (SyntaxError: Failed to construct 'EventSource': Cannot open an EventSource to 'http://webserver:eighty/'. The URL is invalid.)
8 PASS: passing a Content-Security-Policy-blocked URL to the EventSource construct or resulted in an exception (SecurityError: Failed to construct 'EventSource': R efused to connect to 'http://disallowed.example.com/' because it violates the do cument's Content Security Policy.) 8 PASS: passing a Content-Security-Policy-blocked URL to the EventSource construct or resulted in an exception (SecurityError: Failed to construct 'EventSource': R efused to connect to 'http://disallowed.example.com/' because it violates the do cument's Content Security Policy.)
9 PASS: no exception when passing a second argument to the EventSource constructor 9 PASS: no exception when passing a second argument to the EventSource constructor
10 DONE 10 DONE
11 11
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698