Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / websocket / null-character.html
bloba8541c6a5173ebed8ffc9bdbca3f1c9bdb56b36f
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="/js-test-resources/js-test.js"></script>
5 </head>
6 <body>
7 <div id="description"></div>
8 <div id="console"></div>
9 <script type="text/javascript">
10 description("Make sure WebSocket transfer null character");
12 window.jsTestIsAsync = true;
14 var ws = new WebSocket("ws://127.0.0.1:8880/echo");
15 // \xff in string would be \xc3\xbf on websocket connection (UTF-8)
16 var expectedMessage = "Should Not\xff\0Split";
18 ws.onopen = function()
20 debug("WebSocket open");
21 ws.send(expectedMessage);
24 var msg;
25 ws.onmessage = function(messageEvent)
27 msg = messageEvent.data;
28 debug("msg should not be split by frame char \\xff\\0");
29 shouldBe("msg", "expectedMessage");
30 ws.close();
33 ws.onclose = function()
35 debug("WebSocket closed");
36 finishJSTest();
39 </script>
40 </body>
41 </html>