From: Scott Gonzalez Date: Thu, 12 Nov 2009 23:08:33 +0000 (+0800) Subject: Added test for passing null to .show() X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=8cb8ae27d8e0c732b711d73d2ef71125b0a7769b;p=jquery.git Added test for passing null to .show() --- diff --git a/test/unit/fx.js b/test/unit/fx.js index c2bf6b4..e1793ec 100644 --- a/test/unit/fx.js +++ b/test/unit/fx.js @@ -1,13 +1,19 @@ module("fx"); test("show()", function() { - expect(15); + expect(16); var pass = true, div = jQuery("#main div"); div.show().each(function(){ if ( this.style.display == "none" ) pass = false; }); ok( pass, "Show" ); + pass = true; + div.hide().show(null).each(function() { + if ( this.style.display == "none" ) pass = false; + }); + ok( pass, "Show will null speed"); + jQuery("#main").append('

'); var old = jQuery("#show-tests table").show().css("display") !== "table";