Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / websocket / error-event-ready-state.html
blob7581647304fb074b72ab6cc1b3bfa03fd78ba1fc
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 that readyState is CLOSED within onerror event");
11 window.jsTestIsAsync = true;
13 var ws = null;
15 function doTest()
17 debug("Test start (Port 8880)");
19 // This URL must return a 404 error.
20 var url = "ws://127.0.0.1:8880/non-existent-url"
22 ws = new WebSocket(url);
24 ws.onopen = function()
26 testFailed("Connected");
27 finishJSTest();
30 ws.onerror = function()
32 shouldBe("ws.readyState", "3");
35 ws.onclose = function()
37 finishJSTest();
41 doTest();
43 </script>
44 </body>
45 </html>