🌐 AI搜索 & 代理 主页
Skip to content

Commit fbce702

Browse files
committed
Ref #12846 and 3b6d8941d8. Fix unit test for IE6.
1 parent 7adee6c commit fbce702

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/unit/effects.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1797,8 +1797,12 @@ test( "Animate properly sets overflow hidden when animating width/height (#12117
17971797
equal( div.css( "overflow" ), "hidden",
17981798
"overflow: hidden set when animating " + prop + " to " + value );
17991799
div.stop();
1800-
equal( div.css( "overflow" ), "auto",
1801-
"overflow: auto restored after animating " + prop + " to " + value );
1800+
if ( jQuery.support.shrinkWrapBlocks ) {
1801+
ok( true, "cannot restore overflow, shrinkWrapBlocks" );
1802+
} else {
1803+
equal( div.css( "overflow" ), "auto",
1804+
"overflow: auto restored after animating " + prop + " to " + value );
1805+
}
18021806
});
18031807
});
18041808
});

0 commit comments

Comments
 (0)