JS Test Harness: Remove successfullyParsed from more tests
[WebKit-https.git] / LayoutTests / http / tests / websocket / tests / hybi / bad-sub-protocol-non-ascii.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 by non-ASCII chars.");
11
12 if (window.layoutTestController)
13     layoutTestController.overridePreference("WebKitHixie76WebSocketProtocolEnabled", 0);
14
15 // Fails if protocol contains an character greater than U+007E.
16 shouldThrow('new WebSocket("ws://127.0.0.1:8880/simple", "\u007F")');
17 shouldThrow('new WebSocket("ws://127.0.0.1:8880/simple", "\u0080")');
18 shouldThrow('new WebSocket("ws://127.0.0.1:8880/simple", "\u3042")');
19 shouldThrow('new WebSocket("ws://127.0.0.1:8880/simple", "\uFFFF")');
20 shouldThrow('new WebSocket("ws://127.0.0.1:8880/simple", "\uFEFF")');
21 shouldThrow('new WebSocket("ws://127.0.0.1:8880/simple", "\uFFFE")');
22 // Surrogate pairs
23 shouldThrow('new WebSocket("ws://127.0.0.1:8880/simple", "\uD840\uDC0B")');
24
25 </script>
26 <script src="../../../../js-test-resources/js-test-post.js"></script>
27 </body>
28 </html>