The plugins site is currently in development.
We've been looking to provide a higher-quality, spam-free experience at the plugins site for some time, and a major error on our part forced us to shut down the current site before we could put the new one in place. We are developing a new site, and you can follow along with its development on GitHub. For more information about this transition, including steps you can take as a plugin author to prepare, please read our post about what's going on.
Patch to add a synchronous mode for automated testing purposes
| Project: | Live Query |
| Version: | 1.0.2 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | patch (code needs review) |
Jump to:
When writing automated tests for code that relies on LiveQuery, it's impossible to make assertions on the side effects of live queries because the assertions run before the setTimeout function invokes the queries. We made a conservative change that adds the ability to say "$.livequery.asynchronous = false;" in tests so that callbacks are invoked as soon as the live queries are matched. The checkQueue method is also modified so that recursive invocations to checkQueue, which occur when query matches are processed immediately, do not cause errors.
| Attachment | Size |
|---|---|
| 0001-NS-DMC-Added-synchronous-mode-for-testing-purposes.patch | 7.2 KB |
- Login to post comments

Comments
#1
We introduced another, better patch. Ignore this one.