tor-browser

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

006.html (598B)


      1 <!doctype html>
      2 <title>WebSockets: 'on*' in ws</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(){
     11  var ws = new WebSocket(SCHEME_DOMAIN_PORT+'/');
     12  assert_equals('onopen' in ws, true, 'onopen');
     13  assert_equals('onmessage' in ws, true, 'onmessage');
     14  assert_equals('onerror' in ws, true, 'onerror');
     15  assert_equals('onclose' in ws, true, 'onclose');
     16 });
     17 </script>