49d574db208257f9d9015f0e9dfdbe1252e2c29c
[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 if (window.testRunner)
13     testRunner.overridePreference("WebKitHixie76WebSocketProtocolEnabled", 1);
14
15 var ws = new WebSocket("ws://127.0.0.1:8880/websocket/tests/hixie76/simple");
16
17 shouldBeUndefined("ws.binaryType");
18 shouldBeUndefined("ws.extensions");
19 shouldBeUndefined("ws.protocol");
20
21 </script>
22 <script src="../../../../js-test-resources/js-test-post.js"></script>
23 </body>
24 </html>