aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2015-10-26 17:37:41 -0400
committerScott González <scott.gonzalez@gmail.com>2016-06-09 17:15:02 -0400
commitd156f02aa8603eefa96a4da905c282f907c2cad7 (patch)
tree71200226d9b17945dbe1f47f71bf951262f6a8c5 /tests/unit
parent11ebb6946d72ffeb189adf8ac67a1b6fff1ec7a4 (diff)
downloadjquery-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.js5
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 );
});
},