summaryrefslogtreecommitdiffstats
path: root/dom/base/test/eventsource_worker.js
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--dom/base/test/eventsource_worker.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/dom/base/test/eventsource_worker.js b/dom/base/test/eventsource_worker.js
new file mode 100644
index 0000000000..863d52eec1
--- /dev/null
+++ b/dom/base/test/eventsource_worker.js
@@ -0,0 +1,6 @@
+const es = new EventSource(
+ "http://mochi.test:8888/tests/dom/base/test/eventsource_message.sjs"
+);
+es.onmessage = function () {
+ es.close();
+};