diff options
author | Scott González <scott.gonzalez@gmail.com> | 2015-10-26 17:37:41 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2016-06-09 17:15:02 -0400 |
commit | d156f02aa8603eefa96a4da905c282f907c2cad7 (patch) | |
tree | 71200226d9b17945dbe1f47f71bf951262f6a8c5 /tests/unit | |
parent | 11ebb6946d72ffeb189adf8ac67a1b6fff1ec7a4 (diff) | |
download | jquery-ui-d156f02aa8603eefa96a4da905c282f907c2cad7.tar.gz jquery-ui-d156f02aa8603eefa96a4da905c282f907c2cad7.zip |
Tabs: Handle overly-precise values in tests in IE
Closes gh-1628
(cherry picked from commit 81a002991e1d307b460af60162f0b058e7b74750)
Diffstat (limited to 'tests/unit')
-rw-r--r-- | tests/unit/tabs/tabs_test_helpers.js | 5 |
1 files changed, 4 insertions, 1 deletions
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 ); }); }, |