From: Scott González Date: Mon, 26 Oct 2015 21:37:41 +0000 (-0400) Subject: Tabs: Handle overly-precise values in tests in IE X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d156f02aa8603eefa96a4da905c282f907c2cad7;p=jquery-ui.git Tabs: Handle overly-precise values in tests in IE Closes gh-1628 (cherry picked from commit 81a002991e1d307b460af60162f0b058e7b74750) --- diff --git a/tests/unit/tabs/tabs_test_helpers.js b/tests/unit/tabs/tabs_test_helpers.js index 0c9309186..74170c263 100644 --- a/tests/unit/tabs/tabs_test_helpers.js +++ b/tests/unit/tabs/tabs_test_helpers.js @@ -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 ); }); },