diff options
author | Richard Gibson <richard.gibson@gmail.com> | 2015-03-16 23:05:36 -0400 |
---|---|---|
committer | Richard Gibson <richard.gibson@gmail.com> | 2015-03-16 23:49:48 -0400 |
commit | e22ef5d9017c44cad97ae541fefce76cc455edcb (patch) | |
tree | aad2724ba30084faade7d49443060e83c1874a4d /test/unit/css.js | |
parent | 48be675200e817f40fa8ec25da1be2ab0839d28d (diff) | |
download | jquery-e22ef5d9017c44cad97ae541fefce76cc455edcb.tar.gz jquery-e22ef5d9017c44cad97ae541fefce76cc455edcb.zip |
Tests: Expand CSS relative adjustment tolerance for IE
Ref 48be675200e817f40fa8ec25da1be2ab0839d28d
Diffstat (limited to 'test/unit/css.js')
-rw-r--r-- | test/unit/css.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/css.js b/test/unit/css.js index e97e16d6b..3117b12d7 100644 --- a/test/unit/css.js +++ b/test/unit/css.js @@ -218,9 +218,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 |