Age | Commit message (Collapse) | Author |
|
Now that we've crowded it with a few synthetic users, lazy-loading of
members doesn't some other room to get tested. Bonus:
Connection::roomByAlias() has its own very simple test now.
(cherry picked from commit d09383d5dc7379c534860b5a66467a32d6adc932)
|
|
...because finished() includes abandoning and should only be relevant
when lifecycle issues are involved.
(cherry picked from commit 90d41b697af39253483d9bcca4e57b11d2197112)
|
|
|
|
Previously the code was waiting until an arbitrary event is sent.
(cherry picked from commit 424d5c33542c4c38baefb773163e9ebed1accfb6)
|
|
(cherry picked from commit 0a2acd750a4155969092be674ed3dd9a71b2354f)
|
|
|
|
The first character inside the fragment should be /
(cherry picked from commit 948be2ef2bf04e306fbb0e2c3e0a98f4151337a7)
|
|
|
|
Member renames upon profile changes don't come right away, it turns out;
so check User::nameChanged instead of Room::memberRenamed.
|
|
|
|
Sync may bring past events in a few batches, it turns out, and quotest
used to choke on name changes from its own past executions.
Also: fix whitespacesmissing ina log line.
|
|
|
|
#quotient:matrix.org is a primary channel to talk to users and
developers, and events produced by changeName test come really noisy.
#test:matrix.org is a perfect place to test things out, OTOH.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
To ensure that the sync returns the details of the room just joined.
|
|
Introducing the uniform way to resolve Matrix URIs and identifiers
to Room/User objects, passing an optional event id (if supplied) to
the client-defined handler. Just call ResourceResolver::visitResource()
or ResourceResolver::openResource() and you'll have that string parsed
and dispatched where you need.
|
|
...to spare the developer from scrolling up in the search of it.
|
|
Closes #406.
|
|
Add another TODO instead :-|
|
|
|
|
connectToServer() is left for compatibility but deprecated.
|
|
|
|
Signed-off-by: Alexey Andreev <aa13q@ya.ru>
|
|
|
|
Tests should be private slots, not public slots; and they
are invoked through a QueuedConnection so that both sync
and async tests could be processed uniformly with clear code.
|
|
Because cout is not synchronised with stderr and the library's
debug printing is not aligned with that from quotest.
qDebug()/qWarn() would probably be even better, for consistency;
but require switching from std::string to QString.
|
|
Also: joining the test room didn't survive being a test in its
own right and has been reverted to be a part of setupAndRun().
|
|
|
|
Synchronous tests now use QSignalSpy instead of connecting to the signal
just before its emission.
|
|
|
|
Also: some bits of refactoring in the test code
to make it more extensible. Closes #352.
|