aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/effects/core.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/unit/effects/core.js b/tests/unit/effects/core.js
index b8da50d5d..b2d039a54 100644
--- a/tests/unit/effects/core.js
+++ b/tests/unit/effects/core.js
@@ -378,8 +378,10 @@ $.each( $.effects.effect, function( effect ) {
assert.equal( test[ 0 ].style.height, cssHeight, "Inline CSS Height has been rest after animation ended" );
ready();
} );
- assert.equal( test.width(), width, "Width is the same px after animation started" );
- assert.equal( test.height(), height, "Height is the same px after animation started" );
+ assert.ok( Math.abs( test.width() - width ) / width < 0.05,
+ "Width is close to the value when animation started" );
+ assert.ok( Math.abs( test.height() - height ) / height < 0.05,
+ "Height is close to the value when animation started" );
} );
} );