summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/eventsource/eventsource-constructor-empty-url.any.js
blob: 850d854db4d22b757846ac3ffd79db7f207a2136 (plain)
1
2
3
4
5
6
// META: global=window,worker

test(function() {
    const source = new EventSource("");
    assert_equals(source.url, self.location.toString());
}, "EventSource constructor with an empty url.");