1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-07-30 04:23:07 +03:00
Commit Graph

572 Commits

Author SHA1 Message Date
f240563fb5 Add room state/syncing stub tests 2015-06-25 17:49:46 +01:00
e8d17a5ab3 Add missing pagination test 2015-06-25 17:36:21 +01:00
f49234a772 Add pagination tests 2015-06-25 17:29:25 +01:00
46d5c2bd61 Add pagination test; fix null token bug. 2015-06-25 16:33:22 +01:00
325c00c660 Set Room.oldState.paginationToken to null at the start of the timeline. Fix linting errors. 2015-06-25 15:28:25 +01:00
c4c68a0287 Add local echo tests. 2015-06-25 15:24:56 +01:00
b3efafebbe Restructure test layout. 2015-06-24 12:53:15 +01:00
f763eb3f37 Convert all helper functions which make events to use kwargs 2015-06-24 11:43:16 +01:00
26a23b19b3 Use an opts for helper mk functions; poor man's keyword args. 2015-06-24 11:14:54 +01:00
7a02c5d167 Add concept of 'sentinel' RoomMembers which watch state at a particular point in time.
New sentinels are only created when the RoomMember state changes, so we don't
needlessly deep copy RoomMembers f.e. MatrixEvent. Sentinels co-exist with
RoomState.members which are single instances to which listeners can be attached.
This gets the best of both worlds (don't have to keep re-attaching listeners on
member changes, don't have needless memory consumption).
2015-06-12 15:38:02 +01:00
61f107f6f9 Hide the data store from the end-user. Proxy calls to getRoom. 2015-06-11 16:36:30 +01:00
19a5b99dea Add RoomMember and RoomState event emissions with UTs. Hook everything up.
Distinguish between inserts and updates to the members dictionary to allow
listeners to add more hooks to the member before it has been given state.
2015-06-11 14:29:32 +01:00
911ca1d5c5 Implement Room event emissions with UTs.
Shuffle test groupings into EventEmitter and startClient. Add more jsdoc.
2015-06-11 13:22:21 +01:00
4c3e56ad4c Add test for event emitting. Fix reEmit function. 2015-06-11 11:58:31 +01:00
b2620507fa Remove startClient(callback); Emit 'syncError' and 'event'.
'syncError' event is intended to be used to update the UI to say "connection
lost". Add UTs for 'event' emissions.
2015-06-10 16:19:38 +01:00
2fb68cfed2 Handle m.typing events. 2015-06-09 10:27:37 +01:00
8d2f058d3d Appease linters 2015-06-08 17:31:53 +01:00
a43447b00e Add tests to exercise room name / timeline logic; fix some bugs as a result. 2015-06-08 17:27:10 +01:00
c4aeac31c1 Fix tests; add logs and use promises when flushing. 2015-06-08 10:17:24 +01:00
bf1a9f83e6 Appease closure linter. 2015-06-05 17:45:56 +01:00
3d90942e9b Appease jshint 2015-06-05 17:36:15 +01:00
0d25fbcbe7 Add MatrixClient.startClient tests using Jasmine. 2015-06-05 17:32:50 +01:00