From 81a002991e1d307b460af60162f0b058e7b74750 Mon Sep 17 00:00:00 2001 From: Scott González Date: Mon, 26 Oct 2015 17:37:41 -0400 Subject: Tabs: Handle overly-precise values in tests in IE Closes gh-1628 --- tests/unit/tabs/helper.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests/unit/tabs/helper.js') diff --git a/tests/unit/tabs/helper.js b/tests/unit/tabs/helper.js index 073895f5f..8c102ec60 100644 --- a/tests/unit/tabs/helper.js +++ b/tests/unit/tabs/helper.js @@ -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 ); } ); }, -- cgit v1.2.3