QUnit.asyncTest()


QUnit.asyncTest( name, callback )

Description: DEPRECATED: Add an asynchronous test to run. The test must include a call to QUnit.start().

This method is deprecated and will be removed in QUnit 2.0.0. Use QUnit.test() in conjunction with assert.async() instead.

For testing asynchronous code, QUnit.asyncTest will automatically stop the test runner and wait for your code to call QUnit.start() to continue.

The assert argument to the callback contains all of QUnit's assertion methods. Use this argument to call your test assertions.

This method used to have an optional second argument called expected, which was also deprecated. If you are currently using it, use assert.expect() instead.