X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=test%2Funit%2Feffects.js;fp=test%2Funit%2Feffects.js;h=7da814343467bbc9e36364beed1c1b2b6123dded;hb=bb9408516aa0fc8892f4e07a99b1a47bce06081b;hp=a07c076d7820b14df2b75b094ec333e78c43afa6;hpb=3ad8dd242acec1066f43a9349f4c1a352680d37b;p=jquery.git diff --git a/test/unit/effects.js b/test/unit/effects.js index a07c076..7da8143 100644 --- a/test/unit/effects.js +++ b/test/unit/effects.js @@ -162,6 +162,18 @@ test("Persist correct display value", function() { }); }); +test("show() resolves correct default display #8099", function() { + expect(3); + var bug8099 = jQuery("").appendTo("#main"); + + equals( bug8099.css("display"), "none", "default display override for all tt" ); + equals( bug8099.show().css("display"), "inline", "Correctly resolves display:inline" ); + + bug8099.remove(); + + equals( jQuery("#foo").hide().show().css("display"), "block", "Correctly resolves display:block after hide/show" ); +}); + test("animate(Hash, Object, Function)", function() { expect(1); stop();