Commit Graph

57 Commits

Author SHA1 Message Date
Guillermo Rauch
7e692f7be1 Prevent race condition in tests 2010-10-31 15:59:04 -03:00
Guillermo Rauch
8323a43480 Client#broadcast test 2010-10-30 19:45:19 -03:00
Guillermo Rauch
fd19426757 utils tests 2010-10-30 19:10:10 -03:00
Guillermo Rauch
19350dfa3e Moved encode/decode tests into util.js 2010-10-30 19:09:48 -03:00
Guillermo Rauch
64385011af Added flashsocket tests 2010-10-29 09:41:48 -03:00
Guillermo Rauch
bdbb419f95 Invalid transport test completed 2010-10-28 23:14:38 -03:00
Guillermo Rauch
71c99bfb87 Initial stab at trying to detect invalid transport responses
Make sure to provide a default for `log` if no log key was provided (internal)
2010-10-28 05:40:30 -03:00
Guillermo Rauch
f6c2353066 Removed unnecessary Client check upon connection
Added support for /socket.io/WebSocketMain.swf
Added test for /socket.io/WebSocketMain.swf
2010-10-28 05:17:18 -03:00
Guillermo Rauch
9be3daf908 Client serving ETag testing 2010-10-28 05:00:24 -03:00
Guillermo Rauch
8d0196683b Added htmlfile transport tests 2010-10-28 04:12:57 -03:00
Guillermo Rauch
5caf5b8c75 JSONP Polling posts 2010-10-27 04:27:52 -03:00
Guillermo Rauch
85ad36e4dc Invalid session id test
Potenital fix for timeout assertion uncaught exception
2010-10-27 03:25:13 -03:00
Guillermo Rauch
1046e7275c Listener broadcasting test (* sometimes hangs) 2010-10-25 03:55:43 -03:00
Guillermo Rauch
22bc8a6e34 Added listener tests 2010-10-25 03:26:41 -03:00
Guillermo Rauch
880eaa1047 Only utilize 7XXX ports across tests 2010-10-25 03:25:58 -03:00
Guillermo Rauch
22df0e8191 Added test for non-socket.io requests
Simplified index.js tests
Moved listener tests into listener.js
2010-10-25 02:59:25 -03:00
Guillermo Rauch
8b483789fe Make sure to call .end() when listening on connection 'end' event
Make sure the file descriptor is destroyed on disconnection
Fix for websocket client tracking test
2010-10-24 20:31:18 -03:00
Guillermo Rauch
7ea53b8bee [websocket test] Fix sending message to client upon connecting 2010-10-24 18:59:59 -03:00
Guillermo Rauch
75a4705426 [websocket test] Fix for connection and handshake test 2010-10-24 17:15:06 -03:00
Guillermo Rauch
72497517d3 Fixed multipart heartbeat test 2010-10-24 15:17:02 -03:00
Guillermo Rauch
e66751f65a Finished json encoding test 2010-10-24 15:11:49 -03:00
Guillermo Rauch
39a558ee3d Look for the heartbeat in the decoded message 2010-10-24 14:57:20 -03:00
Guillermo Rauch
4eda3d374d Refactored websocket transports tests to match polling/multipart helpers
Make sure to close client/server in heartbeat test
2010-10-24 14:54:11 -03:00
Guillermo Rauch
a65326e640 Added gitignore
Added coverage testing to Makefile
Added heartbeat test to multipart
2010-10-24 12:50:34 -03:00
Guillermo Rauch
3ecb37de17 Added buffered messages test for multipart
Added assertions for `connected` property for all the tests
2010-10-20 13:47:59 -03:00
Guillermo Rauch
6a6779697d Multipart clients tracking test 2010-10-20 04:07:40 -03:00
Guillermo Rauch
6ad4df3f64 Multipart client>server message sending test
Make sure to only close the client stream when the roundtrip is complete
2010-10-20 04:02:25 -03:00
Guillermo Rauch
1defee7e6c Multipart connection and handshake tests:
- Implemented HTTP client on top of net.Stream with multipart boundary parsing for testing
- Test for connection / server>client message sending
2010-10-20 03:48:09 -03:00
Guillermo Rauch
148aa74a29 Removed unnecessary check for this.connection (since we now access the socket through req.connection for all transports)
Started on multipart tests
2010-10-19 15:33:57 -03:00
Guillermo Rauch
d624ef3ea8 Test for duration parameter
Close the server
2010-10-19 15:06:06 -03:00
Guillermo Rauch
25f597a9f8 Added make example to Makefile
Added clients tracking test for long polling
Added message buffering test for long polling
2010-10-19 14:18:34 -03:00
Guillermo Rauch
6712d71a2e Replaced empty with null in log option
Comma first style for client serving tests
2010-10-18 18:05:32 -03:00
Guillermo Rauch
080e8944a3 Re-enabled serving static files test
Changed handling of options so that polling defaults are in the respective transports
Switched to comma-first style
2010-10-18 17:05:19 -03:00
Guillermo Rauch
8b52e1f8ed Long polling integration tests
- Utility functions
 - Connection and handshake test
2010-10-17 21:29:19 -03:00
Guillermo Rauch
66a6e6d37e Test for heartbeat message 2010-10-17 18:08:41 -03:00
Guillermo Rauch
464a1c6448 Added heartbeat timeout test
Support for listener#log false
2010-10-17 18:06:53 -03:00
Guillermo Rauch
18a0b99282 Corrected onConnect signature to support a request and a socket, or a request and a response.
Removed error checking for non-upgradeable sockets, since they'll be destroyed, and error handling is done onConnect
Added tests for websocket client tracking
Added tests for websocket message buffering
Make sure disconnect timeout is cleared on websocket re-connect
2010-10-17 05:41:29 -03:00
Guillermo Rauch
6f37628b4f Clearing heartbeat interval upon closing the connection
Commenting client serving test (made the tests hang)
Make sure to close the netserver if all listeners http servers are closed
2010-10-04 16:41:48 -03:00
Guillermo Rauch
30f0521461 Adapting websocket client api to ev.data
Closing as opposed to disconnecting when websocket errors out
2010-10-03 18:44:17 -03:00
Guillermo Rauch
36463a245e Moved dependencies into support/ from tests/support
Adapted Makefile
2010-10-03 18:24:16 -03:00
Guillermo Rauch
0dd9cc3ada _decode and _encode moved to utils
Removed accidental 1==2 for serving the not modified status code for the client
Finished websocket test
2010-10-03 18:19:21 -03:00
Guillermo Rauch
4465d3416b Tabs => spaces 2010-10-03 15:40:06 -03:00
Guillermo Rauch
b5deea4855 Converted tabs into spaces
Typo fix in flash socket warning message
2010-10-03 15:39:24 -03:00
Guillermo Rauch
a883f17fac Close the server upon timeout
Starting converting back to spaces to comply with node coding standards
2010-10-03 15:32:51 -03:00
Guillermo Rauch
8ef523b97e Expresso updated for regular expressions suppport (thanks tj) 2010-09-20 12:32:49 -07:00
Guillermo Rauch
a264f98e78 Updated expresso 2010-09-20 12:23:03 -07:00
Guillermo Rauch
efd458be7d Cleaned up index and websocket tests 2010-09-20 12:03:18 -07:00
Guillermo Rauch
5524812243 client.js tests fixes
Removed `.test` suffix from tests
Updated node-websocket-client
2010-09-20 11:56:27 -07:00
Guillermo Rauch
61f4e27029 Socket.IO-node now serves the client out of the box for easier implementation
Memory caching and ETag support for static files
Tests
Simplified demo even further thanks to new static file serving
2010-09-09 17:54:25 -07:00
Guillermo Rauch
757337fac5 Cleanly closing connection if data is incorrectly framed
Reorganized tests
2010-08-02 09:50:28 -07:00