]> source.dussan.org Git - jquery.git/commitdiff
Tests: Expand CSS relative adjustment tolerance for IE
authorRichard Gibson <richard.gibson@gmail.com>
Tue, 17 Mar 2015 03:05:36 +0000 (23:05 -0400)
committerRichard Gibson <richard.gibson@gmail.com>
Tue, 17 Mar 2015 03:53:53 +0000 (23:53 -0400)
Ref 48be675200e817f40fa8ec25da1be2ab0839d28d
Ref 4a8000b51a9854e21361e435e4c9b9cbd8ac458a

(cherry picked from commit e22ef5d9017c44cad97ae541fefce76cc455edcb)

test/unit/css.js

index 1fdbfd78ada326529700594a6ae393217e0f470f..7f4addded32723269362f09ddd62b00b63f16e6c 100644 (file)
@@ -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