diff options
author | Scott González <scott.gonzalez@gmail.com> | 2015-03-31 16:52:28 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2015-04-09 09:24:45 -0400 |
commit | 2e1c72fb59b3e41da15ebcd83640dbdf13a90d27 (patch) | |
tree | 0a294a24d275202594cd4953843c73f5105677cc /tests/unit/effects | |
parent | 7c896ddb8563e1f4fc655904614cf72d010e2ecb (diff) | |
download | jquery-ui-2e1c72fb59b3e41da15ebcd83640dbdf13a90d27.tar.gz jquery-ui-2e1c72fb59b3e41da15ebcd83640dbdf13a90d27.zip |
Tests: Convert closeEnough() to a proper QUnit assertion
Should eventually replace with qunit-assert-close.
Ref #10119
Ref gh-1528
Diffstat (limited to 'tests/unit/effects')
-rw-r--r-- | tests/unit/effects/effects_scale.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/unit/effects/effects_scale.js b/tests/unit/effects/effects_scale.js index caed39c22..03446367d 100644 --- a/tests/unit/effects/effects_scale.js +++ b/tests/unit/effects/effects_scale.js @@ -3,11 +3,11 @@ module( "effect.scale: Scale" ); function run( position, v, h, vo, ho ) { var desc = "End Position Correct: " + position + " (" + v + "," + h + ") - origin: (" + vo + "," + ho + ")"; - asyncTest( desc, function() { + asyncTest( desc, function( assert ) { expect( 2 ); function complete() { - closeEnough( parseInt( test.css( h ), 10 ), target[ h ], 1, "Horizontal Position Correct " + desc ); - closeEnough( parseInt( test.css( v ), 10 ), target[ v ], 1, "Vertical Position Correct " + desc ); + assert.close( parseInt( test.css( h ), 10 ), target[ h ], 1, "Horizontal Position Correct " + desc ); + assert.close( parseInt( test.css( v ), 10 ), target[ v ], 1, "Vertical Position Correct " + desc ); start(); } var test = $( ".testScale" ), |