4 <script src="../../../../js-test-resources/js-test-pre.js"></script>
7 <div id="description"></div>
8 <div id="console"></div>
10 description("Test whether WebSocket rejects control frames longer than 125 bytes.");
12 window.jsTestIsAsync = true;
13 if (window.layoutTestController)
14 layoutTestController.overridePreference("WebKitHixie76WebSocketProtocolEnabled", 0);
16 var url = "ws://localhost:8880/websocket/tests/hybi/long-control-frame";
17 var ws = new WebSocket(url);
21 ws.onopen = function()
23 debug("onopen() was called.");
26 ws.onclose = function(event)
29 shouldBeFalse("closeEvent.wasClean");
34 <script src="../../../../js-test-resources/js-test-post.js"></script>