| Index: chrome/test/data/http/tests/wss.html
|
| diff --git a/chrome/test/data/http/tests/wss.html b/chrome/test/data/http/tests/wss.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..cef7fa796edfb3f264e245f38bddaf9a6429666b
|
| --- /dev/null
|
| +++ b/chrome/test/data/http/tests/wss.html
|
| @@ -0,0 +1,39 @@
|
| +<!DOCTYPE html>
|
| +<html>
|
| +<head>
|
| +<title>test wss connection</title>
|
| +<script type="text/javascript">
|
| +
|
| +var href = window.location.href;
|
| +var portBegin = href.lastIndexOf(':') + 1;
|
| +var portEnd = href.lastIndexOf('/');
|
| +var port = href.slice(portBegin, portEnd);
|
| +var url = 'wss://localhost:' + port + '/websocket/tests/echo';
|
| +
|
| +// Do connection test.
|
| +var ws = new WebSocket(url);
|
| +
|
| +ws.onopen = function()
|
| +{
|
| + // Set document title to 'PASS'. The test observer catches this title changes
|
| + // to know the result.
|
| + document.title = 'PASS';
|
| +}
|
| +
|
| +ws.onclose = function()
|
| +{
|
| + // Set document title to 'FAIL'.
|
| + document.title = 'FAIL';
|
| +}
|
| +
|
| +function timeOutCallback()
|
| +{
|
| + // Set document title to 'FAIL'.
|
| + document.title = 'FAIL';
|
| +}
|
| +
|
| +setTimeout(timeOutCallback, 3000);
|
| +
|
| +</script>
|
| +</head>
|
| +</html>
|
|
|