servo/tests/wpt/web-platform-tests/eventsource/eventsource-constructor-empty-url.any.js

6 lines
196 B
JavaScript

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