mirror of
https://github.com/jquery/jquery.git
synced 2026-02-01 15:15:00 -05:00
Tests: Expand CSS relative adjustment tolerance for IE
Ref48be675200Ref4a8000b51a(cherry picked from commite22ef5d901)
This commit is contained in:
@@ -232,9 +232,9 @@ test( "css() non-px relative values (gh-1711)", 17, function() {
|
||||
$child.css( prop, adjustment );
|
||||
cssCurrent = parseFloat( $child.css( prop ) );
|
||||
|
||||
// Require a difference of less than one pixel
|
||||
// Require a difference of no more than one pixel
|
||||
difference = Math.abs( cssCurrent - expected );
|
||||
if ( difference < 1 ) {
|
||||
if ( difference <= 1 ) {
|
||||
ok( true, message );
|
||||
|
||||
// ...or fail with actual and expected values
|
||||
|
||||
Reference in New Issue
Block a user