Skip to content

Commit 81a0029

Browse files
committed
Tabs: Handle overly-precise values in tests in IE
Closes jquerygh-1628
1 parent 39853fd commit 81a0029

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/unit/tabs/helper.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@ return $.extend( helper, {
4747

4848
equalHeight: function( tabs, height ) {
4949
tabs.find( ".ui-tabs-panel" ).each( function() {
50-
equal( $( this ).outerHeight(), height );
50+
51+
// Handle overly-precise values
52+
var actualHeight = parseFloat( $( this ).outerHeight().toFixed( 1 ) );
53+
equal( actualHeight, height );
5154
} );
5255
},
5356

0 commit comments

Comments
 (0)