David Baker
904539df58
Fix c+p fail & add unit test
2015-11-04 12:02:02 +00:00
Kegan Dougal
c9df9c33a8
Linting
2015-11-04 11:53:10 +00:00
Kegan Dougal
5c3bfa6a83
Add stub unit tests for syncing
2015-11-04 11:50:32 +00:00
Kegan Dougal
cab7a71a94
Change calculating display names from O(n^2) to O(n)
...
Reduces initial sync times from ~30s to ~1s on accounts with heavily
populated rooms.
The problem was that f.e. RoomMember it would try to calculate the
display name, which involved looping each RoomMember to get their
display name to check for disambiguation. We now cache display names
to user IDs so we don't need to loop every member when disambiguating.
2015-10-21 13:25:23 +01:00
Kegan Dougal
343d63a28a
Merge branch 'develop' into room-avatars
2015-10-19 15:33:42 +01:00
Kegsay
0a28d6e950
Merge pull request #26 from matrix-org/invite-room-state
...
Invite room state
2015-10-19 15:31:45 +01:00
Kegan Dougal
2c213f88d9
Units! Tests! Linting!
2015-10-19 15:24:24 +01:00
Kegan Dougal
a236219111
ContentRepo unit tests
2015-10-19 15:00:06 +01:00
Kegan Dougal
5ae87b7c95
Bug fixes and unit tests
2015-10-16 17:27:05 +01:00
Kegan Dougal
a101857cb6
Add integration tests for read receipts
2015-10-16 13:51:44 +01:00
Kegan Dougal
a52f92830a
Implement unit tests for read receipts.
2015-10-16 13:37:53 +01:00
Kegan Dougal
7ec8421d19
Fix linting errors
2015-10-16 11:38:49 +01:00
Kegan Dougal
9048efeb65
Implement receipt handling and expose new Room functions
...
Add polyfills for Array.map/filter according to MDN because it looks much
better than the utils format.
Add stub tests for edge cases and implement test for the common case.
2015-10-16 11:32:27 +01:00
Kegan Dougal
0988332850
Minor cleanup
2015-10-13 10:05:29 +01:00
Mark Haines
9e5f30fe1f
Fix some lint errors
2015-07-22 11:37:22 +01:00
Kegan Dougal
c5718891c5
Fix tests. Add MatrixCall.setLocalVideoElement
2015-07-16 10:07:19 +01:00
Kegan Dougal
4c48990c1f
Decorate setItem/getItem to map between Objects and Strings.
2015-07-02 13:27:13 +01:00
Kegan Dougal
df8ec50631
Add storeEvents UTs; fix bugs as a result.
2015-07-02 11:37:50 +01:00
Kegan Dougal
023a3cf2bd
Finish scrollback UTs.
2015-07-02 10:22:53 +01:00
Kegan Dougal
23c3ce92d7
Finish scrollback impl. Add UTs.
2015-07-02 10:13:51 +01:00
Kegsay
df7bde4257
Merge pull request #10 from matrix-org/push
...
Push
2015-07-01 18:19:43 +01:00
Kegan Dougal
82de3b6f19
Begin scrollback implementation.
...
Add Room.storageToken to docs. Add unit test stubs for scrollback function.
Add a basic common-case implementation.
2015-07-01 18:04:59 +01:00
David Baker
214697eec9
Fix long line
2015-07-01 18:03:29 +01:00
David Baker
db790f0b19
fixjsstyle
2015-07-01 18:02:35 +01:00
David Baker
c81cb1fcfd
Tests for pushprocessor
2015-07-01 18:01:48 +01:00
Kegan Dougal
9fd847567c
Add get/setUser and getRooms with UTs.
2015-07-01 16:38:13 +01:00
Kegan Dougal
213caf7c26
Add old state check.
2015-07-01 15:33:58 +01:00
Kegan Dougal
732f9dc592
Restructure timeline batches to have high numbers = newest; it's less confusing that way.
2015-07-01 15:28:41 +01:00
Kegan Dougal
22506513b4
Add more webstore unit tests.
2015-07-01 14:20:14 +01:00
Kegan Dougal
994fcceace
Add another storeRoom test. Add stub tests for WebStorage.
2015-07-01 12:03:34 +01:00
Kegan Dougal
a0fddf7ab3
Linting.
2015-06-30 17:58:35 +01:00
Kegan Dougal
c8da373ecc
Add first cut webstorage implementation. Add very basic test.
2015-06-30 17:56:58 +01:00
Kegan Dougal
3c4bda8580
Add MatrixScheduler.removeEventFromQueue/getQueueForEvent and QUEUED state.
...
This is to allow the UI to show "queued" on events as well as allow the
removal of events in the queue.
2015-06-26 09:52:52 +01:00
Kegan Dougal
21df000604
Add Room.addEvents UT
2015-06-25 14:00:52 +01:00
Kegan Dougal
0be3c6837d
Add utils UTs. Remove unused functions.
2015-06-24 17:42:02 +01:00
Kegan Dougal
74fcbdee3f
Add retryFn -1 test.
2015-06-24 17:14:11 +01:00
Kegan Dougal
332bdcd101
Add Scheduler UTs.
2015-06-24 17:05:06 +01:00
Kegan Dougal
913178b284
Linting
2015-06-24 15:38:18 +01:00
Kegan Dougal
2a83248168
Add User UTs
2015-06-24 15:37:55 +01:00
Kegan Dougal
8f16948430
Appease linters
2015-06-24 14:57:48 +01:00
Kegan Dougal
1b665c176a
Add RoomState UTs
2015-06-24 14:57:04 +01:00
Kegan Dougal
0bc9951f13
Add RoomState UT stubs.
2015-06-24 13:52:17 +01:00
Kegan Dougal
d3377e3dea
Add RoomMember UTs. Fix disambiguation bug. Add CHANGELOG.
2015-06-24 13:35:19 +01:00
Kegan Dougal
b3efafebbe
Restructure test layout.
2015-06-24 12:53:15 +01:00
Kegan Dougal
a12133ec9f
Appease linters
2015-06-24 11:44:00 +01:00
Kegan Dougal
f763eb3f37
Convert all helper functions which make events to use kwargs
2015-06-24 11:43:16 +01:00
Kegan Dougal
26a23b19b3
Use an opts for helper mk functions; poor man's keyword args.
2015-06-24 11:14:54 +01:00
Kegan Dougal
9d967fb232
Add some UTs to Room methods
2015-06-24 11:05:18 +01:00
Kegan Dougal
c6b11fc382
Make Room.calculateRoomName private to avoid confusion with Room.name.
2015-06-15 09:31:46 +01:00
Kegan Dougal
fc2c6f403d
Re-add power-level/typing UTs as RoomMember tests.
2015-06-10 17:19:56 +01:00