Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /eventsource/eventsource-constructor-empty-url.any.html - WPT Dashboard Interop Dashboard
- /eventsource/eventsource-constructor-empty-url.any.serviceworker.html - WPT Dashboard Interop Dashboard
- /eventsource/eventsource-constructor-empty-url.any.sharedworker.html - WPT Dashboard Interop Dashboard
- /eventsource/eventsource-constructor-empty-url.any.worker.html - WPT Dashboard Interop Dashboard
// META: global=window,worker
test(function() {
const source = new EventSource("");
assert_equals(source.url, self.location.toString());
}, "EventSource constructor with an empty url.");