tizen beta release
[framework/web/webkit-efl.git] / LayoutTests / http / tests / websocket / tests / hybi / bad-sub-protocol-empty.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../../../../js-test-resources/js-test-pre.js"></script>
5 </head>
6 <body>
7 <div id="description"></div>
8 <div id="console"></div>
9 <script type="text/javascript">
10 description("Test WebSocket bad sub-protocol names (empty).");
11
12 if (window.layoutTestController)
13     layoutTestController.overridePreference("WebKitHixie76WebSocketProtocolEnabled", 0);
14
15 // Fails if protocol is an empty string.
16 shouldThrow('new WebSocket("ws://127.0.0.1:8880/simple", "")');
17
18 </script>
19 <script src="../../../../js-test-resources/js-test-post.js"></script>
20 </body>
21 </html>