]> source.dussan.org Git - jquery-ui.git/commitdiff
Tabs: Handle overly-precise values in tests in IE
authorScott González <scott.gonzalez@gmail.com>
Mon, 26 Oct 2015 21:37:41 +0000 (17:37 -0400)
committerScott González <scott.gonzalez@gmail.com>
Thu, 9 Jun 2016 21:15:02 +0000 (17:15 -0400)
Closes gh-1628

(cherry picked from commit 81a002991e1d307b460af60162f0b058e7b74750)

tests/unit/tabs/tabs_test_helpers.js

index 0c9309186150fc607e51e909e8eb847d8387a32e..74170c2630c8df3604a74dc871691c212e31945d 100644 (file)
@@ -40,7 +40,10 @@ TestHelpers.tabs = {
 
        equalHeight: function( tabs, height ) {
                tabs.find( ".ui-tabs-panel" ).each(function() {
-                       equal( $( this ).outerHeight(), height );
+
+                       // Handle overly-precise values
+                       var actualHeight = parseFloat( $( this ).outerHeight().toFixed( 1 ) );
+                       equal( actualHeight, height );
                });
        },