Richard van der Hoff
3404751eb9
Clean up test shutdown
...
Make sure that the integration tests actually kill off all of their timers, so
that jasmine exits cleanly.
This probably also fixes https://github.com/vector-im/vector-web/issues/1365 .
2016-04-14 12:01:23 +01:00
Richard van der Hoff
cfd96969fc
Add unit tests for setting the pagination token on sync
2016-03-01 13:58:29 +00:00
Richard van der Hoff
0034bdf4ad
Set the back-pagination token before raising Room.timelineReset
...
This fixes another race condition on gappy syncs, wherein we weren't
back-paginating back from the start of the gappy sync.
2016-03-01 13:35:22 +00:00
Richard van der Hoff
76f84c54db
Add a unit test for syncLeftRooms
...
We don't have *any* tests for syncLeftRooms right now, so start one.
2016-03-01 12:12:49 +00:00
Richard van der Hoff
f3e5e03009
Give precedence to later Read Receipts
...
In order to resolve the conflict between local and remote read-receipts, try to
give precedence to the read-receipt which refers to the most recent event.
Also fix the read-receipt synthesis in _addLiveEvents so that it actually works
(drop the spurious MatrixEvent wrapper), and remove the synthesis in
recalculate() (which appears to be redundant).
2016-02-04 15:35:27 +00:00
Kegan Dougal
3d9d31d6b1
Fix remaining integration tests
2015-12-11 13:22:27 +00:00
Kegan Dougal
2675442ced
Line lengths
2015-10-26 16:31:10 +00:00
Kegan Dougal
aa3e6514c6
Add test for firing (pew pew) of events
2015-10-26 16:30:15 +00:00
Kegan Dougal
be6d64fbfd
Add integration tests; fix bugs.
2015-10-26 16:12:06 +00:00
Kegan Dougal
a101857cb6
Add integration tests for read receipts
2015-10-16 13:51:44 +01:00
Kegan Dougal
32c4d3ffc4
Parse m.presence events from /events
2015-07-20 10:07:34 +01:00
David Baker
9ea080b7bb
Fetch the user's push rules before any events arrive, so we can annotate events with push data when they arrive.
2015-06-26 15:11:27 +01:00
Kegan Dougal
f240563fb5
Add room state/syncing stub tests
2015-06-25 17:49:46 +01:00
Kegan Dougal
b3efafebbe
Restructure test layout.
2015-06-24 12:53:15 +01:00