[go: nahoru, domu]

blob: 5a7b1794d04188c96eed64ebe4440a0af92e4389 [file] [log] [blame]
[
"test",
"?",
null,
123,
].forEach(input => {
test(() => {
const url = new URL(input, location);
url.protocol = "ws";
const ws = new WebSocket(input);
assert_equals(ws.url, url.href);
ws.close();
}, `Create WebSocket - Pass a non absolute URL: ${input}`);
});