From d156f02aa8603eefa96a4da905c282f907c2cad7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Mon, 26 Oct 2015 17:37:41 -0400 Subject: [PATCH] Tabs: Handle overly-precise values in tests in IE Closes gh-1628 (cherry picked from commit 81a002991e1d307b460af60162f0b058e7b74750) --- tests/unit/tabs/tabs_test_helpers.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/unit/tabs/tabs_test_helpers.js b/tests/unit/tabs/tabs_test_helpers.js index 0c9309186..74170c263 100644 --- a/tests/unit/tabs/tabs_test_helpers.js +++ b/tests/unit/tabs/tabs_test_helpers.js @@ -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 ); }); }, -- 2.39.5