4 <script src="../../../../js-test-resources/js-test-pre.js"></script>
7 <div id="description"></div>
8 <div id="console"></div>
10 description("Test WebSocket.extensions attribute.");
12 if (window.layoutTestController)
13 layoutTestController.overridePreference("WebKitHixie76WebSocketProtocolEnabled", 0);
15 var ws = new WebSocket("ws://localhost:8880/websocket/tests/hybi/simple");
16 shouldBeEqualToString("ws.extensions", "");
18 // extensions attribute is read-only.
19 ws.extensions = "foo";
20 shouldBeEqualToString("ws.extensions", "");
23 <script src="../../../../js-test-resources/js-test-post.js"></script>