]> source.dussan.org Git - jquery.git/commitdiff
Ref #12846 and 3b6d8941d8. Fix unit test for IE6.
authorDave Methvin <dave.methvin@gmail.com>
Sun, 3 Feb 2013 03:18:33 +0000 (22:18 -0500)
committerDave Methvin <dave.methvin@gmail.com>
Sun, 3 Feb 2013 03:18:33 +0000 (22:18 -0500)
test/unit/effects.js

index 173af5a0e2a81b11d37a572c2a4e3e0ba14b37cc..e761300a227f2568ff24fc2abc96888106e593f8 100644 (file)
@@ -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 );
+                       }
                });
        });
 });