1 CONSOLE ERROR: Refused to connect to 'http://disallowed.example.com/' because it violates the following Content Security Policy directive: "connect-src http://invalid http://127.0.0.1".
3 Test EventSource constructor functionality. Should print a series of PASS messages followed by DONE.
5 PASS: missing argument to EventSource constructor resulted in an exception (TypeError: Failed to construct 'EventSource': 1 argument required, but only 0 present.)
6 PASS: passing an empty string to the EventSource constructor resulted in an exception (SyntaxError: Failed to construct 'EventSource': Cannot open an EventSource to an empty URL.)
7 PASS: passing an invalid URL to the EventSource constructor resulted in an exception (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 constructor resulted in an exception (SecurityError: Failed to construct 'EventSource': Refused to connect to 'http://disallowed.example.com/' because it violates the document's Content Security Policy.)
9 PASS: no exception when passing a second argument to the EventSource constructor