We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05c2398 commit b0d65f7Copy full SHA for b0d65f7
test/effects.js
@@ -5,16 +5,20 @@ QUnit.test( "jQuery.easing", function( assert ) {
5
easingCallCount = 0,
6
animComplete = assert.async();
7
8
- assert.expect( 4 );
+ assert.expect( 5 );
9
10
jQuery.easing.testOld = function( p, n, firstNum, diff ) {
11
assert.ok( false, "should not have been called" );
12
};
13
14
jQuery.easing.testNew = function( p ) {
15
- if ( ++easingCallCount < 3 ) {
16
- assert.ok( p > lastP, "called, percentage is increasing" );
17
- lastP = p;
+ if ( ++easingCallCount < 4 ) {
+ if ( p === 0 && p === lastP ) {
+ assert.ok( true, "p===0 called twice before jQuery 3.2.0" );
18
+ } else {
19
+ assert.ok( p > lastP, "called, percentage is increasing" );
20
+ lastP = p;
21
+ }
22
}
23
24
// Linear
0 commit comments