X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=test%2Funit%2Feffects.js;h=7da814343467bbc9e36364beed1c1b2b6123dded;hb=bb9408516aa0fc8892f4e07a99b1a47bce06081b;hp=7fb1c7d8d972d2929245508117defc895c6d2eb1;hpb=c5edf982d59977c506fececd504a3dbfd1a398dc;p=jquery.git diff --git a/test/unit/effects.js b/test/unit/effects.js index 7fb1c7d..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(); @@ -922,7 +934,7 @@ test("hide hidden elements, with animation (bug #7141)", function() { test("animate unit-less properties (#4966)", 2, function() { stop(); - var div = jQuery( "
" ).appendTo( "body" ); + var div = jQuery( "
" ).appendTo( "#main" ); equal( div.css( "z-index" ), "0", "z-index is 0" ); div.animate({ zIndex: 2 }, function() { equal( div.css( "z-index" ), "2", "z-index is 2" );