qunit: Update tests to not assume animations use setTimeout
authorTimo Tijhof <krinklemail@gmail.com>
Tue, 22 Nov 2016 02:57:18 +0000 (18:57 -0800)
committerTimo Tijhof <krinklemail@gmail.com>
Tue, 22 Nov 2016 03:03:33 +0000 (19:03 -0800)
commitbc785281797d6c4455967a105d83e44ad12f612e
treec33c1f80f2fcfb6c07c3d3c48ab20ce923658f26
parenta4d39fee7987abbe1b605b79997919882c9131b0
qunit: Update tests to not assume animations use setTimeout

As of jQuery 1.12, animations use requestAnimationFrame in modern
browsers, which cannot be forced to finish synchronously by merely
mocking the 'setTimeout' and 'Date' clocks via Sinon.

For jquery.color, reduce duration from 10ms to 3ms (not 10ms which will
now be real time, not 0ms since we do want to test real frames).

Change-Id: Ie147fc2a91d2cd349b4031390f3c59b1bcfb65b5
tests/qunit/data/testrunner.js
tests/qunit/suites/resources/jquery/jquery.color.test.js
tests/qunit/suites/resources/jquery/jquery.makeCollapsible.test.js