OLD | NEW |
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 | |
3 Test EventSource constructor functionality. Should print a series of PASS messag
es followed by DONE. | 1 Test EventSource constructor functionality. Should print a series of PASS messag
es followed by DONE. |
4 | 2 |
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.) | 3 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.) | 4 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.) | 5 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.) | 6 PASS: no exception when passing an URL blocked by Content Security Policy to the
EventSource constructor |
9 PASS: no exception when passing a second argument to the EventSource constructor | 7 PASS: no exception when passing a second argument to the EventSource constructor |
10 DONE | 8 DONE |
11 | 9 |
OLD | NEW |