diff options
Diffstat (limited to 'testing/web-platform/tests/eventsource/eventsource-constructor-empty-url.any.js')
-rw-r--r-- | testing/web-platform/tests/eventsource/eventsource-constructor-empty-url.any.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/testing/web-platform/tests/eventsource/eventsource-constructor-empty-url.any.js b/testing/web-platform/tests/eventsource/eventsource-constructor-empty-url.any.js new file mode 100644 index 0000000000..850d854db4 --- /dev/null +++ b/testing/web-platform/tests/eventsource/eventsource-constructor-empty-url.any.js @@ -0,0 +1,6 @@ +// META: global=window,worker + +test(function() { + const source = new EventSource(""); + assert_equals(source.url, self.location.toString()); +}, "EventSource constructor with an empty url."); |