Git init
[framework/web/webkit-efl.git] / LayoutTests / http / tests / websocket / tests / hixie76 / bad-sub-protocol-empty.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <link rel="stylesheet" href="../../../../js-test-resources/js-test-style.css">
5 <script src="../../../../js-test-resources/js-test-pre.js"></script>
6 </head>
7 <body>
8 <div id="description"></div>
9 <div id="console"></div>
10 <script type="text/javascript">
11 description("Test WebSocket bad sub-protocol names (empty).");
12
13 // Fails if protocol is an empty string.
14 shouldThrow('new WebSocket("ws://127.0.0.1:8880/simple", "")');
15
16 var successfullyParsed = true;
17 </script>
18 <script src="../../../../js-test-resources/js-test-post.js"></script>
19 </body>
20 </html>