0d7b411a3aee8e033cfd4113342403858696fb8b
[WebKit-https.git] / LayoutTests / http / tests / websocket / tests / hixie76 / undefined-attributes.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../../../js-test-resources/js-test-pre.js"></script>
5 </head>
6 <body>
7 <div id="description"></div>
8 <div id="console"></div>
9 <script type="text/javascript">
10 description("Test WebSocket attributes which should not be defined when hixie-76 protocol is used.");
11
12 var ws = new WebSocket("ws://127.0.0.1:8880/websocket/tests/hixie76/simple");
13
14 shouldBeUndefined("ws.binaryType");
15 shouldBeUndefined("ws.extensions");
16 shouldBeUndefined("ws.protocol");
17
18 </script>
19 <script src="../../../../js-test-resources/js-test-post.js"></script>
20 </body>
21 </html>