// Reset the inline display of this element to learn if it is
// being hidden by cascaded rules or not
if ( !jQuery.data(elem, "olddisplay") && display === "none" ) {
- elem.style.display = "";
+ display = elem.style.display = "";
}
// Set elements which have been overridden with display: none
});
test("show()", function() {
- expect(26);
+ expect(27);
var hiddendiv = jQuery("div.hidden");
+ hiddendiv.hide().show();
+
+ equals( hiddendiv.css("display"), "block", "Make sure a pre-hidden div is visible." );
+
+ QUnit.reset();
+
+ hiddendiv = jQuery("div.hidden");
+
equal(jQuery.css( hiddendiv[0], "display"), "none", "hiddendiv is display: none");
hiddendiv.css("display", "block");