Skip to content

Commit d156f02

Browse files
committed
Tabs: Handle overly-precise values in tests in IE
Closes gh-1628 (cherry picked from commit 81a0029)
1 parent 11ebb69 commit d156f02

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/unit/tabs/tabs_test_helpers.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ TestHelpers.tabs = {
4040

4141
equalHeight: function( tabs, height ) {
4242
tabs.find( ".ui-tabs-panel" ).each(function() {
43-
equal( $( this ).outerHeight(), height );
43+
44+
// Handle overly-precise values
45+
var actualHeight = parseFloat( $( this ).outerHeight().toFixed( 1 ) );
46+
equal( actualHeight, height );
4447
});
4548
},
4649

0 commit comments

Comments
 (0)