aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/tabs
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>2015-10-27 11:06:48 -0400
commit81a002991e1d307b460af60162f0b058e7b74750 (patch)
treeb17044110ac7de78c957c5814511e66c61ce0f67 /tests/unit/tabs
parent39853fda45a409e9dc47d7358fbd9b03ad1d33b5 (diff)
downloadjquery-ui-81a002991e1d307b460af60162f0b058e7b74750.tar.gz
jquery-ui-81a002991e1d307b460af60162f0b058e7b74750.zip
Tabs: Handle overly-precise values in tests in IE
Closes gh-1628
Diffstat (limited to 'tests/unit/tabs')
-rw-r--r--tests/unit/tabs/helper.js5
1 files changed, 4 insertions, 1 deletions
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 );
} );
},