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 ); }); },