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

9 lines
No EOL
238 B
JavaScript

// META: global=window,worker
// META: title=EventSource: constructor (invalid URL)
// META: script=/resources/idlharness.js
test(() => {
assert_throws('SyntaxError', () => { new EventSource("http://this is invalid/"); });
});
done();