1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
4 <link rel="stylesheet" href="../../../../js-test-resources/js-test-style.css">
5 <script src="../../../../js-test-resources/js-test-pre.js"></script>
8 <div id="description"></div>
9 <div id="console"></div>
10 <script type="text/javascript">
11 description("Test WebSocket bad sub-protocol names (empty).");
13 // Fails if protocol is an empty string.
14 shouldThrow('new WebSocket("ws://127.0.0.1:8880/simple", "")');
16 var successfullyParsed = true;
18 <script src="../../../../js-test-resources/js-test-post.js"></script>