From: Oleg Date: Sat, 10 Aug 2013 03:47:21 +0000 (+0400) Subject: Fix test of #13855 for Opera 12.1 and IE10 X-Git-Tag: 2.1.0-beta1~94 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5bbfa46aba1e6d2d56923f77b194371791f75061;p=jquery.git Fix test of #13855 for Opera 12.1 and IE10 --- diff --git a/test/unit/effects.js b/test/unit/effects.js index 523e19b12..18dac1f3d 100644 --- a/test/unit/effects.js +++ b/test/unit/effects.js @@ -1414,10 +1414,10 @@ test("Do not append px to 'fill-opacity' #9548", 1, function() { asyncTest("line-height animates correctly (#13855)", 12, function() { var animated = jQuery( - "

unitless

" + + "

unitless

" + "

px

" + "

percent

" + - "

em

" + "

em

" ).appendTo("#qunit-fixture"), initialHeight = jQuery.map( animated, function( el ) { return jQuery( el ).height(); @@ -1429,8 +1429,8 @@ asyncTest("line-height animates correctly (#13855)", 12, function() { var label = jQuery.text( this ), initial = initialHeight[ i ], height = jQuery( this ).height(); - 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 ); + ok( height < initial, "hide " + label + ": upper bound; height: " + height + "; intitial: " + initial ); + ok( height > initial / 3, "hide " + label + ": lower bound; height: " + height + "; intitial/3: " + initial ); }); animated.stop( true, true ).hide().animate( { "line-height": "show" }, 1500 ); setTimeout(function() { @@ -1438,7 +1438,7 @@ asyncTest("line-height animates correctly (#13855)", 12, function() { var label = jQuery.text( this ), initial = initialHeight[ i ], height = jQuery( this ).height(); - ok( height < initial / 2, "show " + label + ": upper bound; height:" + height + "; intitial/2: " + initial / 2 ); + ok( height < initial / 2, "show " + label + ": upper bound; height: " + height + "; intitial/2: " + initial / 2 ); }); animated.stop( true, true ); start();