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';
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';