From: Dave Methvin Date: Sun, 3 Feb 2013 03:18:33 +0000 (-0500) Subject: Ref #12846 and 3b6d8941d8. Fix unit test for IE6. X-Git-Tag: 1.9.1~6 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=fbce702f4bb47ed5cfb2e58e1646fefc2b786a2e;p=jquery.git Ref #12846 and 3b6d8941d8. Fix unit test for IE6. --- diff --git a/test/unit/effects.js b/test/unit/effects.js index 173af5a0e..e761300a2 100644 --- a/test/unit/effects.js +++ b/test/unit/effects.js @@ -1797,8 +1797,12 @@ test( "Animate properly sets overflow hidden when animating width/height (#12117 equal( div.css( "overflow" ), "hidden", "overflow: hidden set when animating " + prop + " to " + value ); div.stop(); - equal( div.css( "overflow" ), "auto", - "overflow: auto restored after animating " + prop + " to " + value ); + if ( jQuery.support.shrinkWrapBlocks ) { + ok( true, "cannot restore overflow, shrinkWrapBlocks" ); + } else { + equal( div.css( "overflow" ), "auto", + "overflow: auto restored after animating " + prop + " to " + value ); + } }); }); });