tor-browser

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

protocol-initial.html (516B)


      1 <!doctype html>
      2 <title>WebSockets: getting protocol in connecting</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 <div id=log></div>
      9 <script>
     10 test(function(t) {
     11  // The protocol attribute must initially return the empty string
     12  assert_equals((new WebSocket(SCHEME_DOMAIN_PORT + '/empty-message')).protocol, '');
     13 });
     14 </script>