From 8cb8ae27d8e0c732b711d73d2ef71125b0a7769b Mon Sep 17 00:00:00 2001 From: Scott Gonzalez Date: Fri, 13 Nov 2009 07:08:33 +0800 Subject: [PATCH] Added test for passing null to .show() --- test/unit/fx.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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"; -- 1.7.10.4