1 if (self.importScripts)
2 importScripts("/js-test-resources/js-test.js");
4 description("Test EventSource with non-HTTP protocol schemes in the URL.");
6 self.jsTestIsAsync = true;
10 new EventSource("ftp://127.0.0.1").onerror =
11 new EventSource("file:///etc/motd").onerror =
12 new EventSource("localhost:8080/").onerror =
13 new EventSource("tel:1234").onerror = function () {
15 shouldBe("es.readyState", "EventSource.CLOSED");