Update V8 to version 4.7.42.
[chromium-blink-merge.git] / net / data / websocket / connect_check.html
blob8d8e815b114c8822fbf517eef375ea1575733ce0
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>test ws connection</title>
5 <script type="text/javascript">
6 var protocol = location.protocol.replace('http', 'ws');
7 var url = protocol + '//' + location.host + '/echo-with-no-extension';
8 // Do connection test.
9 var ws = new WebSocket(url);
11 ws.onopen = function()
13 // Set document title to 'PASS'. The test observer catches this title changes
14 // to know the result.
15 document.title = 'PASS';
18 ws.onclose = function()
20 // Set document title to 'FAIL'.
21 document.title = 'FAIL';
24 </script>
25 </head>
26 </html>