Commit Graph

164 Commits

Author SHA1 Message Date
Guillermo Rauch
a08b791cb8 Fixed Socket#emit with function as last argument (event packet with ACK) 2011-05-24 22:31:29 -07:00
Guillermo Rauch
2083fca33a Fixed event data ack for endpoint test. 2011-05-24 22:31:06 -07:00
Guillermo Rauch
11c1dda0c8 Fixed test for data acks from the client for endpoint messages. 2011-05-24 22:26:03 -07:00
Guillermo Rauch
3593916578 Fixed test for automatic client acknowledgements to an endpoint. 2011-05-24 22:21:41 -07:00
Guillermo Rauch
8c302fc323 Fixed test for manual data acks with events associated with an endpoint. 2011-05-24 22:17:15 -07:00
Guillermo Rauch
28c9d03dfa Fixed manual data ack test with endpoint. 2011-05-24 22:11:32 -07:00
Guillermo Rauch
5a93d72e9c Make sure automatic endpoints preserve endpoint. 2011-05-24 22:09:03 -07:00
Guillermo Rauch
a4b6e2850b Fixed test for endpoint acknowledgements. 2011-05-24 22:08:40 -07:00
Guillermo Rauch
8545d452bf Fixed test mechanics for volatile events sent from endpoint in the context of a
xhr-polling request/response cycle. See 2295ab92ae.
2011-05-24 21:49:03 -07:00
Guillermo Rauch
93729be50a Fixed test mechanics of volatile messages sent from an endpoint in the context of a
xhr-polling cycle. See 2295ab92ae.
2011-05-24 21:45:52 -07:00
Guillermo Rauch
2295ab92ae Fixed volatile endpoint message test. The connection event of a custom endpoint
fires when the `connect` packet type is received, but at that point no request-
response cycle was open.
2011-05-24 21:38:41 -07:00
Guillermo Rauch
d5721a6177 Fixed broken done reference in test. 2011-05-24 21:30:56 -07:00
Guillermo Rauch
54bc13e686 Fixed test expectation in server sent events with data. 2011-05-24 21:25:20 -07:00
Guillermo Rauch
756e319466 Fixed endpoint expectation in server sent events test. 2011-05-24 21:23:40 -07:00
Guillermo Rauch
8e13926804 Fixed endpoint expectation in json endpoint test. 2011-05-24 21:22:16 -07:00
Guillermo Rauch
6f3e59878f Fixed test expectation, added missing socket disconnect handler, fixed POST. 2011-05-24 21:20:03 -07:00
Guillermo Rauch
2a202f90d2 Fied typo in test, clarified test title, fixed expectation, fixed POST request. 2011-05-24 21:17:04 -07:00
Guillermo Rauch
bfabd6eadf Renamed Socket#packets ACK packets count to ackPackets for clarity. 2011-05-24 21:16:45 -07:00
Guillermo Rauch
a647fae3c4 Remvoed volatile messages unsubscription. 2011-05-24 21:03:21 -07:00
Guillermo Rauch
245c57c527 Fix style. 2011-05-24 21:02:26 -07:00
Guillermo Rauch
40106aa8db Fixed test expectation. 2011-05-24 21:01:54 -07:00
Guillermo Rauch
b663f5dd24 Make sure the Transport assumes delivered messages are pre-encoded. 2011-05-24 21:01:27 -07:00
Guillermo Rauch
79f6e5c538 Make sure that Socket#packet encodes the message prior to publication. 2011-05-24 21:01:05 -07:00
Guillermo Rauch
61eb0a2fd4 Added manual ack data callback handling. 2011-05-24 21:00:48 -07:00
Guillermo Rauch
5ea91da02f Added missing socket argument to event listener 2011-05-24 20:25:36 -07:00
Guillermo Rauch
fced9cca5e Fixed test expectation for Ack packet. 2011-05-24 20:24:03 -07:00
Guillermo Rauch
adf9f1150a Added automatic ACK handling to Transport. 2011-05-24 20:23:45 -07:00
Guillermo Rauch
bd231fcc9b Make sure to POST the ACK after the response close, so that we can test buffering
of ACKs.
2011-05-24 20:01:48 -07:00
Guillermo Rauch
0c4ac66b5f Fixed missing post reference in xhr-polling test. 2011-05-24 19:56:42 -07:00
Guillermo Rauch
00b600e5c0 Fixed xhr-polling test. 2011-05-24 19:55:12 -07:00
Guillermo Rauch
fafb44dcad Fixed test expectation for xhr-polling. 2011-05-24 19:54:11 -07:00
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
aa3b99a630 Added Socket#$emit as the original EventEmitter emit 2011-05-24 18:51:40 -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
7b486e2b37 Make sure to set drain to false upon htmlfile transport write. 2011-05-22 20:18:03 -07:00
Guillermo Rauch
334c00f2c0 Finished last websocket test. 2011-05-22 20:17:44 -07:00
Guillermo Rauch
a2c30a1416 Fixed event emission from Socket (the name key was missing) 2011-05-22 20:17:20 -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
f020d012f2 Make sure the socket is considered drained when re-set, specially if a socket is
closed before its drain event fires.
2011-05-22 14:28:41 -07:00
Guillermo Rauch
b76901eb56 Removed writeVolatile special handling for polling transports, since it's now handled
elegantly across all transports, and polling drained-ness doesn't concern us.
2011-05-22 14:22:41 -07:00