456 Commits

Author SHA1 Message Date
Guillermo Rauch
c57cabb982 Fixed missing done reference in xhr-polling test. 2011-05-24 19:53:04 -07:00
Guillermo Rauch
9777886f6c Fixed test expecetation in xhr-polling. 2011-05-24 19:51:48 -07:00
Guillermo Rauch
b3b4ac439d Fixed event emitter in test with correct paramaters. 2011-05-24 18:43:16 -07:00
Guillermo Rauch
3be15033cc Fixed test expectation in messages json comparison. 2011-05-24 18:42:03 -07:00
Guillermo Rauch
c30a8edcc0 Added volatile event tests for htmlfile. 2011-05-22 22:33:25 -07:00
Guillermo Rauch
cf435bf3c6 Add test for deliverable volatile json. 2011-05-22 22:28:56 -07:00
Guillermo Rauch
2869f466be Added volatile message tests for htmlfile. 2011-05-22 22:23:53 -07:00
Guillermo Rauch
2cc3a85ea1 Added test for undeliverable volatile events for htmlfile. 2011-05-22 21:21:02 -07:00
Guillermo Rauch
8c9e063b74 Added htmlfile test for undeliverable volatile json. 2011-05-22 21:11:37 -07:00
Guillermo Rauch
fcd474e89e Added htmlfile test for undeliverable volatile messages. 2011-05-22 21:10:20 -07:00
Guillermo Rauch
0e3f0eabe4 Simplified heartbeat htmlfile test, made consistent with websocket one. 2011-05-22 20:47:07 -07:00
Guillermo Rauch
334c00f2c0 Finished last websocket test. 2011-05-22 20:17:44 -07:00
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