diff --git a/test/unit/effects.js b/test/unit/effects.js index 7fc8e7336..113390e6f 100644 --- a/test/unit/effects.js +++ b/test/unit/effects.js @@ -1445,16 +1445,13 @@ test("Do not append px to 'fill-opacity' #9548", 1, function() { }); }); -test("line-height animates correctly (#13855)", function() { - expect( 12 ); - stop(); - +asyncTest("line-height animates correctly (#13855)", 12, function() { var animated = jQuery( - "
unitless
" + - "px
" + - "percent
" + - "em
" + "unitless
" + + "px
" + + "percent
" + + "em
" ).appendTo("#qunit-fixture"), initialHeight = jQuery.map( animated, function( el ) { return jQuery( el ).height(); @@ -1466,8 +1463,8 @@ test("line-height animates correctly (#13855)", function() { var label = jQuery.text( this ), initial = initialHeight[ i ], height = jQuery( this ).height(); - ok( height < initial, "hide " + label + ": upper bound" ); - ok( height > initial / 2, "hide " + label + ": lower bound" ); + ok( height < initial, "hide " + label + ": upper bound; height:" + height + "; intitial: " + initial ); + ok( height > initial / 2, "hide " + label + ": lower bound; height:" + height + "; intitial/2: " + initial / 2 ); }); animated.stop( true, true ).hide().animate( { "line-height": "show" }, 1500 ); setTimeout(function() { @@ -1475,7 +1472,7 @@ test("line-height animates correctly (#13855)", function() { var label = jQuery.text( this ), initial = initialHeight[ i ], height = jQuery( this ).height(); - ok( height < initial / 2, "show " + label + ": upper bound" ); + ok( height < initial / 2, "show " + label + ": upper bound; height:" + height + "; intitial/2: " + initial / 2 ); }); animated.stop( true, true ); start();