]> git.proxmox.com Git - mirror_novnc.git/commit - tests/test.websock.js
Cleanup: WebSocket Helper
authorSolly Ross <sross@redhat.com>
Thu, 22 May 2014 20:57:55 +0000 (16:57 -0400)
committerSolly Ross <sross@redhat.com>
Mon, 15 Sep 2014 20:46:02 +0000 (16:46 -0400)
commit2cccf7530c272de3627fa871da8e6ed44f437edb
tree8b4b9f1f4667413620f8eee44e441d85b26b7782
parentee7d4c61c6c2b39bc257d9fc1c20d2b2a479d370
Cleanup: WebSocket Helper

File: websock.js
Tests Added: True
Changes:
- Cleaned up JSHint errors
- Converted to normal JS constructor pattern with "private" fields and
  methods now simply being prepended by underscores
- Added a "bind" polyfill for use in PhantomJS 1.x in util.js
- Added FakeWebSocket to fill in for actual WebSocket objects when
  testing
- Made exception handler actually log exception name and message,
  to console, in addition to stack trace
include/websock.js
tests/fake.websocket.js [new file with mode: 0644]
tests/test.websock.js [new file with mode: 0644]