jquery/jquery — pull request #746 by Krinkle (2012-04-20 06:28:40+00:00)
Title: Fix QUnit configuration

- If an asynchronous test fails to report anything, the QUnit reporter must not hang
forever, but continue after a certain time.

- By default QUnit.config.testTimeout is undefined, which means a stop() will indefinitely
pause execution completely.
Setting to 5 seconds now so that Async failures such as caused by 8fadc5ba01bc517ebb07736d5af9a965ed133a39
in Opera (http://swarm.jquery.org/job/49/) don't cause TestSwarm to be halted for
very long each run.

This also ensures that other tests can be ran, because right now all tests run after
the the one breaking asyncTest, are not tested. Instead QUnit just does nothing until
the TestSwarm client decides to abort the iframe and abort the run entirely (by default
only after 2 minutes!)

- Also fixed the ugly QUnit.reset overloading hack. There is a "testDone" hook now in
QUnit, which is ran right after the one and only call to QUnit.reset() in the Test flow.

- Added some comments and indention