blob: 851c69d073eda0067e61fafd7d3e4b2c6f75841e [file] [log] [blame]
Philip Jägenstedtfb85c5c2014-01-19 17:50:311<!DOCTYPE html>
krisk@microsoft.com8fec27d2012-10-30 10:59:192<html>
3<head>
4 <title>W3C WebSocket API - Create WebSocket - non ws/wss scheme in url</title>
5 <script type="text/javascript" src="/resources/testharness.js"></script>
6 <script type="text/javascript" src="/resources/testharnessreport.js"></script>
James Graham234a6722013-09-17 17:54:387 <script type="text/javascript" src="websocket.js?pipe=sub"></script>
krisk@microsoft.com8fec27d2012-10-30 10:59:198</head>
9<body>
10 <div id="log"></div>
11 <script type="text/javascript">
12 test(function () {
13 var wsocket;
14 assert_throws("SYNTAX_ERR", function () { wsocket = CreateWebSocketNonWsScheme() });
15 }, "W3C WebSocket API - Create WebSocket - Pass a URL with a non ws/wss scheme - SYNTAX_ERR is thrown")
16 </script>
17</body>
18</html>