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:53:53 -0400 |
commit | 9d255b3e50ef2fce9c4f96cb3a3b2c4e71e63068 (patch) | |
tree | 3a0e6ada919820073f0e956de841fa4b56468c43 /test | |
parent | 4a8000b51a9854e21361e435e4c9b9cbd8ac458a (diff) | |
download | jquery-9d255b3e50ef2fce9c4f96cb3a3b2c4e71e63068.tar.gz jquery-9d255b3e50ef2fce9c4f96cb3a3b2c4e71e63068.zip |
Tests: Expand CSS relative adjustment tolerance for IE
Ref 48be675200e817f40fa8ec25da1be2ab0839d28d
Ref 4a8000b51a9854e21361e435e4c9b9cbd8ac458a
(cherry picked from commit e22ef5d9017c44cad97ae541fefce76cc455edcb)
Diffstat (limited to 'test')
-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 1fdbfd78a..7f4addded 100644 --- a/test/unit/css.js +++ b/test/unit/css.js @@ -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 |