tor-browser

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

017.html (645B)


      1 <!doctype html>
      2 <title>WebSockets: too few slashes after ws: and wss:</title>
      3 <script src=/resources/testharness.js></script>
      4 <script src=/resources/testharnessreport.js></script>
      5 <script src=../constants.sub.js></script>
      6 <meta name="variant" content="?default">
      7 <meta name="variant" content="?wss">
      8 <meta name="variant" content="?wpt_flags=h2">
      9 <div id=log></div>
     10 <script>
     11 var tests = [
     12  [__SCHEME + ':', __PORT],
     13  [__SCHEME + ':/', __PORT],
     14 ];
     15 //Pass condition is to not throw
     16 for (var i = 0; i < tests.length; ++i) {
     17  test(function(){new WebSocket(tests[i][0] + location.hostname + ':' + tests[i][1] + '/echo')}, tests[i][0]);
     18 }
     19 </script>