4 <script src="../../js-test-resources/js-test.js"></script>
8 description("Test EventSource with non-HTTP protocol schemes in the URL.");
9 self.jsTestIsAsync = true;
12 new EventSource("ftp://127.0.0.1").onerror =
13 new EventSource("file:///etc/motd").onerror =
14 new EventSource("localhost:8080/").onerror =
15 new EventSource("tel:1234").onerror = function () {
16 if (this.readyState == EventSource.CLOSED) {
17 testPassed("got error event and readyState is CLOSED");
19 testFailed("got error event but readyState is not CLOSED");