]> source.dussan.org Git - jquery-ui.git/commitdiff
Tabs: Handle overly-precise values in tests in IE
authorScott González <scott.gonzalez@gmail.com>
Mon, 26 Oct 2015 21:37:41 +0000 (17:37 -0400)
committerScott González <scott.gonzalez@gmail.com>
Tue, 27 Oct 2015 15:06:48 +0000 (11:06 -0400)
Closes gh-1628

tests/unit/tabs/helper.js

index 073895f5ff399f53c2a9b137c7e874cd1a5bd4da..8c102ec6084f4678ce5a6f3219f60dbdec653a36 100644 (file)
@@ -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 );
                } );
        },