Tabs: Handle overly-precise values in tests in IE

Closes gh-1628

(cherry picked from commit 81a002991e)
This commit is contained in:
Scott González 2015-10-26 17:37:41 -04:00
parent 11ebb6946d
commit d156f02aa8

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