diff options
author | Scott González <scott.gonzalez@gmail.com> | 2015-04-08 09:15:23 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2015-04-09 09:28:25 -0400 |
commit | 4bf80d209a7e804e1aa33d92faf3812a714a03c2 (patch) | |
tree | 928a94f9342bb92ec79d1a8fb8c4a07be88ec53f /tests/lib/qunit.js | |
parent | bde431bb449b1d957d4e0b736111ff342f2a919d (diff) | |
download | jquery-ui-4bf80d209a7e804e1aa33d92faf3812a714a03c2.tar.gz jquery-ui-4bf80d209a7e804e1aa33d92faf3812a714a03c2.zip |
Tests: Use the qunit-assert-close module
Moved QUnit assertion dependencies from `lib/bootstrap` to `lib/qunit`.
Corrected bad draggable assertions.
Ref gh-1528
Diffstat (limited to 'tests/lib/qunit.js')
-rw-r--r-- | tests/lib/qunit.js | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/tests/lib/qunit.js b/tests/lib/qunit.js index 5b0be5d23..757b6a501 100644 --- a/tests/lib/qunit.js +++ b/tests/lib/qunit.js @@ -1,6 +1,9 @@ define( [ "qunit", "jquery", + "qunit-assert-classes", + "qunit-assert-close", + "lib/qunit-assert-domequal", "phantom-bridge" ], function( QUnit, $ ) { @@ -40,12 +43,6 @@ QUnit.reset = ( function( reset ) { }; } )( QUnit.reset ); -// TODO: switch to qunit-assert-close plugin -QUnit.assert.close = function( actual, expected, maxDifference, message ) { - var passes = ( actual === expected ) || Math.abs( actual - expected ) <= maxDifference; - QUnit.push( passes, actual, expected, message ); -}; - return QUnit; } ); |