Tabs: Handle overly-precise values in tests in IE

Closes gh-1628
This commit is contained in:
Scott González 2015-10-26 17:37:41 -04:00
parent 39853fda45
commit 81a002991e

View File

@ -47,7 +47,10 @@ return $.extend( helper, {
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 );
} );
},