tizen beta release
[profile/ivi/webkit-efl.git] / LayoutTests / http / tests / websocket / tests / hybi / extensions.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>
10 description("Test WebSocket.extensions attribute.");
11
12 if (window.layoutTestController)
13     layoutTestController.overridePreference("WebKitHixie76WebSocketProtocolEnabled", 0);
14
15 var ws = new WebSocket("ws://localhost:8880/websocket/tests/hybi/simple");
16 shouldBeEqualToString("ws.extensions", "");
17
18 // extensions attribute is read-only.
19 ws.extensions = "foo";
20 shouldBeEqualToString("ws.extensions", "");
21
22 </script>
23 <script src="../../../../js-test-resources/js-test-post.js"></script>
24 </body>
25 </html>