Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / websocket / broken-utf8.html
blob9c7cc3bf2f1d99e696138646e5c30106ee1162cb
1 <!DOCTYPE HTML>
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>
10 description("Test whether WebSocket aborts the connection when it receives a text frame containing broken UTF-8 data.");
12 window.jsTestIsAsync = true;
14 var ws = new WebSocket("ws://127.0.0.1:8880/broken-utf8");
15 var closeEvent;
17 ws.onopen = function()
19 debug("onopen() was called.");
22 ws.onerror = function(event)
24 debug("onerror() was called.");
27 ws.onmessage = function(event)
29 var message = event.data;
30 testFailed("onmessage() was called. (message = \"" + message + "\")");
33 ws.onclose = function(event)
35 debug("onclose() was called.");
36 closeEvent = event;
37 shouldBeFalse("closeEvent.wasClean");
38 finishJSTest();
41 </script>
42 </body>
43 </html>