From fbce702f4bb47ed5cfb2e58e1646fefc2b786a2e Mon Sep 17 00:00:00 2001 From: Dave Methvin Date: Sat, 2 Feb 2013 22:18:33 -0500 Subject: [PATCH] Ref #12846 and 3b6d8941d8. Fix unit test for IE6. --- test/unit/effects.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 ); + } }); }); });