31 Commits

Author SHA1 Message Date
Guillermo Rauch
c6fed55f53 tests: fixed tests for 0.8 2012-07-24 10:39:23 -07:00
Guillermo Rauch
ddd7f804af Fixed cross-domain xhr tests. 2012-02-26 17:11:52 -03:00
einaros
2d5dcc1a8a whitespace cleanup 2011-11-14 17:57:34 +01:00
einaros
3a07cc29bd added return for clarity 2011-10-26 08:21:22 +02:00
einaros
3f55d82bf7 added node v4 client closing compatibility 2011-10-25 13:30:06 +02:00
einaros
f6c376d087 another stab at proper 0.5 agent socket closing 2011-10-23 14:20:21 +02:00
einaros
bc15077ecc further checks to not close sockets that aren't there 2011-10-23 14:14:48 +02:00
einaros
f213d69e17 check that there's actually a socket to close 2011-10-22 14:39:59 +02:00
einaros
48140cf8a0 node 0.5 way of closing agent sockets 2011-10-22 13:29:57 +02:00
Guillermo Rauch
59e4c3b46c Merge pull request #562 from 3rd-Eden/static
Hardcore caching for pro's
2011-10-10 11:20:38 -07:00
Arnout Kazemier
8107c1a1e2 Added support for HEAD requests, closes #557 2011-10-08 15:46:23 +02:00
einaros
aba2d5e0ef removed empty console.log 2011-10-08 12:00:55 +02:00
einaros
00f7ca1d02 fixed incorrect space chars 2011-10-01 14:45:20 +02:00
einaros
1874fd7c30 added transport option to websocket test client (for flashsocket testing) 2011-09-20 18:40:43 +02:00
Guillermo Rauch
fb5b9bc0b1 Made tests faster. 2011-07-12 03:42:05 -03:00
Arnout Kazemier
45f2718954 Cleaned up the websocket test 2011-06-28 21:05:53 +02:00
Guillermo Rauch
bafb347e4a Changed console.error to console.log. 2011-06-22 23:56:14 -03:00
Guillermo Rauch
3bab44506b Added header override support in test client. 2011-06-21 21:02:11 -03:00
Guillermo Rauch
b5b72bd212 Fixed; make sure handshake responses are not parsed. 2011-05-19 15:50:55 -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
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
5a164ed053 Fixed tests helpers. 2011-05-14 20:25:46 -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
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