<h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests"></ol>
<div id="qunit-fixture">
-<div class="hidden test"></div>
+<div class="hidden test">
+ <div>.</div>
+</div>
<div class="animateClass test">
<h2>Child Element Test</h2>
</div>
equal( ++count, 3, "Both Functions worked properly" );
});
+test( ".hide() with hidden parent", function() {
+ expect( 1 );
+ var element = $( "div.hidden" ).children();
+ element.hide( "blind", function() {
+ equal( element.css( "display" ), "none", "display: none" );
+ });
+});
+
asyncTest( "Parse of null for options", function() {
var hidden = $( "div.hidden" ),
count = 0;
}
}
- // if the element is hiddden and mode is hide,
- // or element is visible and mode is show
+ // If the element already has the correct final state, delegate to
+ // the core methods so the internal tracking of "olddisplay" works.
if ( elem.is( ":hidden" ) ? mode === "hide" : mode === "show" ) {
+ elem[ mode ]();
done();
} else {
effectMethod.call( elem[0], args, done );