X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=test%2Funit%2Feffects.js;h=ce9c16c8cd3b1dfc3322bd53d55fff3d7d947050;hb=0d2e4796dc97d3f9d6b5c1977e883b3ddf2f53d9;hp=b1dd28840e7d6271fe6351518a9a611653e0ad14;hpb=e2941d5a98e91c5f61b200b2763e5fa0eb339365;p=jquery.git diff --git a/test/unit/effects.js b/test/unit/effects.js index b1dd288..ce9c16c 100644 --- a/test/unit/effects.js +++ b/test/unit/effects.js @@ -169,6 +169,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();