diff options
author | abnud1 <ahmad13932013@hotmail.com> | 2019-02-18 19:02:38 +0100 |
---|---|---|
committer | Michał Gołębiowski-Owczarek <m.goleb@gmail.com> | 2019-02-18 19:03:26 +0100 |
commit | c3498187421d0a50ee0369163428481137a04b99 (patch) | |
tree | 9f56f408a22f610089474d2f1784f1a680b4d483 /test/unit/animation.js | |
parent | da44ff39c2c3433e32b757b05b5643edb72fe786 (diff) | |
download | jquery-c3498187421d0a50ee0369163428481137a04b99.tar.gz jquery-c3498187421d0a50ee0369163428481137a04b99.zip |
Build: Update test code for compatibility with QUnit 2.x (#4297)
Also, run `grunt npmcopy` to sync the "external" directory with dependencies
from package.json. For example, the Sinon library version didn't match.
Ref gh-4234
Closes gh-4297
Diffstat (limited to 'test/unit/animation.js')
-rw-r--r-- | test/unit/animation.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/animation.js b/test/unit/animation.js index dfa00ac8d..7a51add31 100644 --- a/test/unit/animation.js +++ b/test/unit/animation.js @@ -12,7 +12,7 @@ var oldRaf = window.requestAnimationFrame, // This module tests jQuery.Animation and the corresponding 1.8+ effects APIs QUnit.module( "animation", { - setup: function() { + beforeEach: function() { window.requestAnimationFrame = null; this.sandbox = sinon.sandbox.create(); this.clock = this.sandbox.useFakeTimers( startTime ); @@ -22,7 +22,7 @@ QUnit.module( "animation", { jQuery.Animation.prefilters = [ defaultPrefilter ]; jQuery.Animation.tweeners = { "*": [ defaultTweener ] }; }, - teardown: function() { + afterEach: function() { this.sandbox.restore(); jQuery.fx.stop(); jQuery.fx.interval = this._oldInterval; |