From 1b4653c36e20019c8f0174fd942042316591184c Mon Sep 17 00:00:00 2001 From: =?UTF-8?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 --- tests/unit/tabs/helper.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/unit/tabs/helper.js b/tests/unit/tabs/helper.js index 073895f5ff3..8c102ec6084 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 ); } ); },