4 <script src=
"/js-test-resources/js-test.js"></script>
7 <div id=
"description"></div>
8 <div id=
"console"></div>
10 description("Test WebSocket.extensions attribute with no extension support in server side.");
12 window
.jsTestIsAsync
= true;
14 var ws
= new WebSocket("ws://localhost:8880/echo-with-no-extension");
15 debug("Check the value before opening the connection:");
16 shouldBeEqualToString("ws.extensions", "");
18 // extensions attribute is read-only.
19 debug("Check if the value is read only:");
20 shouldBeEqualToString("ws.extensions = 'foo'; ws.extensions", "");
22 ws
.onopen = function(event
)
24 debug("Check the value after the connection is established:");
25 shouldBeEqualToString("ws.extensions", "");