diff options
author | Pierre Ossman <ossman@cendio.se> | 2017-02-03 17:16:02 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2017-02-03 17:16:02 +0100 |
commit | ec7ba3eeae31468fab63b89664fde5b09b669272 (patch) | |
tree | 066bcf9cef8bbd67b1908eab74f7bea2552c9261 | |
parent | c4482d2de5623a0541ef78cfe5fcc5e7781e34af (diff) | |
download | novnc-ec7ba3eeae31468fab63b89664fde5b09b669272.tar.gz |
Remove binary protocol tests
We require standard adherence now, so remove tests that assume
the old system.
-rw-r--r-- | tests/test.websock.js | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/tests/test.websock.js b/tests/test.websock.js index fb2f266..023c772 100644 --- a/tests/test.websock.js +++ b/tests/test.websock.js @@ -249,10 +249,6 @@ describe('Websock', function() { expect(WebSocket).to.have.been.calledWith('ws://localhost:8675', 'binary'); }); - it('should fail if we specify a protocol besides binary', function () { - expect(function () { sock.open('ws:///', 'base64'); }).to.throw(Error); - }); - // it('should initialize the event handlers')? }); @@ -312,17 +308,6 @@ describe('Websock', function() { expect(sock._recv_message).to.have.been.calledOnce; }); - it('should fail if a protocol besides binary is requested', function () { - sock._websocket.protocol = 'base64'; - expect(sock._websocket.onopen).to.throw(Error); - }); - - it('should assume binary if no protocol was available on opening', function () { - sock._websocket.protocol = null; - sock._websocket.onopen(); - expect(sock._mode).to.equal('binary'); - }); - it('should call the open event handler on opening', function () { sock._websocket.onopen(); expect(sock._eventHandlers.open).to.have.been.calledOnce; |