tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

Create-invalid-urls.any.js (377B)


      1 [
      2  "ws://foo bar.com/",
      3  "wss://foo bar.com/",
      4  "ftp://"+location.host+"/",
      5  "mailto:example@example.org",
      6  "about:blank",
      7  location.origin + "/#",
      8  location.origin + "/#test",
      9  "#test"
     10 ].forEach(input => {
     11  test(() => {
     12    assert_throws_dom("SyntaxError", () => new WebSocket(input));
     13  }, `new WebSocket("${input}") should throw a "SyntaxError" DOMException`);
     14 });