Limit the scope of the CSS 'auto' change to just height/width. Fixes #7293.
[jquery.git] / test / unit / effects.js
index 8facb4f..74b336f 100644 (file)
@@ -6,7 +6,7 @@ test("sanity check", function() {
 });
 
 test("show()", function() {
-       expect(27);
+       expect(28);
 
        var hiddendiv = jQuery("div.hidden");
 
@@ -14,6 +14,10 @@ test("show()", function() {
 
        equals( hiddendiv.css("display"), "block", "Make sure a pre-hidden div is visible." );
 
+       var div = jQuery("<div>").hide().appendTo("body").show();
+
+       equal( div.css("display"), "block", "Make sure pre-hidden divs show" );
+
        QUnit.reset();
 
        hiddendiv = jQuery("div.hidden");