Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / websocket / url-with-query.html
bloba5a330069c7af408d420208648c3116208665248
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 handshake with URL with query components success.");
12 window.jsTestIsAsync = true;
14 var url = "ws://127.0.0.1:8880/echo-path?q=v";
15 var handshake_success = false;
16 var path;
17 var expected_path = "/echo-path?q=v";
19 function endTest()
21 clearTimeout(timeoutID);
22 shouldBeTrue("handshake_success");
23 shouldBe("path", "expected_path");
24 finishJSTest();
27 debug("url=" + url);
28 var ws = new WebSocket(url);
29 ws.onopen = function () {
30 debug("WebSocket is open");
31 handshake_success = true;
33 ws.onmessage = function (evt) {
34 path = evt.data;
35 debug("received:" + path);
36 ws.close();
38 ws.onclose = function () {
39 debug("WebSocket is closed");
40 endTest();
42 var timeoutID = setTimeout("endTest()", 2000);
44 </script>
45 </body>
46 </html>