Re: [jquery-dev] Problems with QUnit async tests

2010-01-03 Thread John Resig
The stop() method doesn't really work that way (it would have to behave synchronously for that to be the case). You'll have to do one stop() at the start of the test block and then either do only one async test or just keep a counter of the number of tests that've completed and only run the start()

[jquery-dev] Problems with QUnit async tests

2010-01-03 Thread Karel Minarik
Hi, I am trying to use QUnit test framework for testing/TDD of CouchDB apps (testing map/reduce, validations, etc). The basic test case -- testing validations -- could look like this: http://pastie.textmate.org/764793 (I am testing return value in the `db.saveDoc()` callbacks.) The problem is th