008.html (625B)
1 <!doctype html> 2 <title>WebSockets: new WebSocket(url with not blocked port)</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 //Pass condition is to not throw 11 test(function(){new WebSocket('ws://example.invalid:80/')}); 12 test(function(){new WebSocket('ws://example.invalid:443/')}); 13 test(function(){new WebSocket('wss://example.invalid:80/')}); 14 test(function(){new WebSocket('wss://example.invalid:443/')}); 15 </script>