Commit Graph

44 Commits

Author SHA1 Message Date
Guillermo Rauch
474f4e6ebd Added test for delivery of volatile json messages with websocket. 2011-05-22 14:39:43 -07:00
Guillermo Rauch
a5634b0bbd Added test for delivering volatile messages in websocket. 2011-05-22 14:37:05 -07:00
Guillermo Rauch
9b8ca8cc4b Added test for undeliverable volatile events for websocket. 2011-05-22 13:02:13 -07:00
Guillermo Rauch
8c9e6a99bc Added test for undeliverable volatile json in websocket. 2011-05-22 13:01:56 -07:00
Guillermo Rauch
4bba9b1e17 Added test for undeliverable volatile messages for websocket. 2011-05-22 13:01:28 -07:00
Guillermo Rauch
ef610de2b1 Added websocket test for maintaining session by responding to heartbeats. 2011-05-21 21:56:29 -07:00
Guillermo Rauch
c07693b46e Added websocket test for heartbeat disconnection reason. 2011-05-21 21:41:54 -07:00
Guillermo Rauch
c2b6acbff4 Fixed; make sure to check for the beat presence before examining the disconnection
reason in htmlfile heartbeat test.
2011-05-21 21:38:34 -07:00
Guillermo Rauch
4ab6e9592f Fixed; make sure to check for the heartbeat being sent to client in htmlfile
heartbeat test.
2011-05-21 21:36:33 -07:00
Guillermo Rauch
227e14c71b Fixed global leak in websocket test. 2011-05-21 21:34:21 -07:00
Guillermo Rauch
ef435a0b03 Finished incomplete xhr-polling test. 2011-05-21 21:31:10 -07:00
Guillermo Rauch
c8a73d56c8 Added more xhr-polling tests. 2011-05-21 21:01:03 -07:00
Guillermo Rauch
b4034878eb Added jsonp-polling tests. 2011-05-19 15:53:27 -07:00
Guillermo Rauch
b5b72bd212 Fixed; make sure handshake responses are not parsed. 2011-05-19 15:50:55 -07:00
Guillermo Rauch
aa1ba762ae All tests passing 2011-05-19 13:26:26 -07:00
Guillermo Rauch
118f5b2371 Commented out failing test related to connection notifications. 2011-05-18 20:40:37 -07:00
Guillermo Rauch
d64fdfa422 Added WebSocket tests. 2011-05-18 20:40:20 -07:00
Guillermo Rauch
b086a526a1 Added initial websocket test suite. 2011-05-17 18:52:24 -07:00
Guillermo Rauch
76a2da8cb8 Fixed style 2011-05-17 18:51:59 -07:00
Guillermo Rauch
d9015b7732 Fix package.json (thanks @dshaw) 2011-05-17 17:03:22 -07:00
Guillermo Rauch
53bedb7abd Added HTMLFile tests. 2011-05-17 16:12:39 -07:00
Guillermo Rauch
36b7ffe70c Fix style 2011-05-17 16:12:28 -07:00
Guillermo Rauch
3595cc4f0b Added HTTPClient export in test utilities. 2011-05-17 16:12:06 -07:00
Guillermo Rauch
2bf65750f3 Added; test/common exports HTTPClient for transport inheritance.
Added the possibility of HTTPClient not buffering responses.
2011-05-17 11:22:03 -07:00
Guillermo Rauch
e6ad372ef3 Changed; finished refactoring tests. All passing. 2011-05-17 10:52:45 -07:00
Guillermo Rauch
e9ab235174 Tests refactored. 2011-05-16 20:07:56 -07:00
Guillermo Rauch
8f0f71ac92 Changed; cleaned up test utilities:
- Moved all the logic into a reusable class.
 - Minimize globals by only exposing `client` and `create`
 - Separate `http.Agent` per clients so that we can terminate all sockets at once.
 - Implemented `create` to easily spawn a socket.io server for a given client.
2011-05-16 19:45:03 -07:00
Guillermo Rauch
f63f72cdac Added additional packet to payload decoding test. 2011-05-15 19:20:03 -07:00
Guillermo Rauch
b7c877b497 Added additional parser tests. 2011-05-15 19:06:01 -07:00
Guillermo Rauch
9820716ff0 Fixed client packet disconnect test. 2011-05-15 13:37:01 -07:00
Guillermo Rauch
f2060d1283 Added remaining tests. 2011-05-14 22:04:01 -07:00
Guillermo Rauch
5a164ed053 Fixed tests helpers. 2011-05-14 20:25:46 -07:00
Guillermo Rauch
4889057f9a Changed/Added some tests 2011-05-08 20:40:18 -07:00
Guillermo Rauch
b7488e7a13 Added failing disconnection event test 2011-05-07 18:33:43 -07:00
Guillermo Rauch
5d7c5f7471 Changed; make sure to compare the decoded packet representation with an empty
endpoint and advice.
2011-05-07 18:25:40 -07:00
Guillermo Rauch
416cd66591 Fix for detecting HTTP-based transports for get() test shortcut. 2011-05-07 18:25:14 -07:00
Guillermo Rauch
981a0e22b4 Changed; leverage new utilities signature. 2011-05-06 20:23:33 -07:00
Guillermo Rauch
80e8777dba Changed; leverage new utilities signature 2011-05-06 20:23:12 -07:00
Guillermo Rauch
0df8acc280 Fixed; ignore parser for empty GET responses.
Changed; style
2011-05-06 20:22:41 -07:00
Guillermo Rauch
4243ddfb89 Changed; utility functions signature now path, port, opts, fn, with opts being
optional.
Changed; parser override only for paths that include transports.
Changed; style.
2011-05-06 20:22:07 -07:00
Guillermo Rauch
9215d77898 Changed; make sure that get() decodes the payload and also preserves the frame parser. 2011-05-06 17:28:42 -07:00
Guillermo Rauch
deb45624ba Changed; test utilities now expose get / post / req
Changed; req now accepts a response parser
2011-05-06 17:01:11 -07:00
Guillermo Rauch
c2d0774d46 Removed const (slow) 2011-05-06 15:12:51 -07:00
Guillermo Rauch
1514af064f Socket.IO 0.7-pre 2011-05-05 08:49:40 -07:00