summaryrefslogtreecommitdiffstats
path: root/js/xpconnect/tests/unit/test_eventSource.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/xpconnect/tests/unit/test_eventSource.js')
-rw-r--r--js/xpconnect/tests/unit/test_eventSource.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/js/xpconnect/tests/unit/test_eventSource.js b/js/xpconnect/tests/unit/test_eventSource.js
new file mode 100644
index 0000000000..8983d852bd
--- /dev/null
+++ b/js/xpconnect/tests/unit/test_eventSource.js
@@ -0,0 +1,6 @@
+/* Any copyright is dedicated to the Public Domain.
+ * http://creativecommons.org/publicdomain/zero/1.0/ */
+
+Assert.throws(() => new EventSource('a'),
+ /NS_ERROR_FAILURE/,
+ "This should fail, but not crash, in xpcshell");