Andrew Top | 61a8495 | 2019-04-30 15:07:33 -0700 | [diff] [blame] | 1 | <!DOCTYPE html> |
| 2 | <html> |
| 3 | <head> |
| 4 | <title>W3C WebSocket API - Create Secure WebSocket - blocked port</title> |
| 5 | <script type="text/javascript" src="/resources/testharness.js"></script> |
| 6 | <script type="text/javascript" src="/resources/testharnessreport.js"></script> |
| 7 | <script type="text/javascript" src="websocket.js?pipe=sub"></script> |
| 8 | </head> |
| 9 | <body> |
| 10 | <div id="log"></div> |
| 11 | <script> |
| 12 | test(function () { |
| 13 | var wsocket; |
| 14 | var blockedPort = 25; |
| 15 | assert_throws("SECURITY_ERR", function () { wsocket = CreateWebSocketWithBlockedPort(blockedPort) }); |
| 16 | }, "W3C WebSocket API - Create Secure WebSocket - Pass a URL with a blocked port - SECURITY_ERR should be thrown") |
| 17 | </script> |
| 18 | </body> |
| 19 | </html> |