jquery.makeCollapsible.test: Use fake timers to advance animations
authorTimo Tijhof <krinklemail@gmail.com>
Thu, 6 Mar 2014 03:02:18 +0000 (04:02 +0100)
committerKrinkle <krinklemail@gmail.com>
Thu, 27 Mar 2014 20:02:51 +0000 (20:02 +0000)
commit7d04d8cfe8d67fded6291890f5a9d7e9da9b18ce
treefb5fb16ee9f09634f06ecbcaa4a12bf70d2fe44e
parent53448477538fe9c1ed8d83aa8094101a5db8e9f9
jquery.makeCollapsible.test: Use fake timers to advance animations

This is essentially a headless test. No point in slowing down
the QUnit run with dozens of gaps where we wait for 400ms for
some jQuery fade animation to run to completion.

On Chrome 33, this reduced run time for jquery.makeCollapsible
tests from 7631ms to 179ms.

Change-Id: I3723329fc0139da631bd047cb720bab1c2f754d9
tests/qunit/suites/resources/jquery/jquery.makeCollapsible.test.js