summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/eventsource/eventsource-constructor-url-bogus.any.js
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/eventsource/eventsource-constructor-url-bogus.any.js')
-rw-r--r--testing/web-platform/tests/eventsource/eventsource-constructor-url-bogus.any.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/testing/web-platform/tests/eventsource/eventsource-constructor-url-bogus.any.js b/testing/web-platform/tests/eventsource/eventsource-constructor-url-bogus.any.js
new file mode 100644
index 0000000000..53c3205e8a
--- /dev/null
+++ b/testing/web-platform/tests/eventsource/eventsource-constructor-url-bogus.any.js
@@ -0,0 +1,8 @@
+// META: global=window,worker
+// META: title=EventSource: constructor (invalid URL)
+
+test(() => {
+ assert_throws_dom('SyntaxError', () => { new EventSource("http://this is invalid/"); });
+});
+
+done();