diff options
author | Scott Gonzalez <sgonzale@sgonzale-laptop.local> | 2009-11-13 07:08:33 +0800 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2009-11-13 12:23:39 +0800 |
commit | 8cb8ae27d8e0c732b711d73d2ef71125b0a7769b (patch) | |
tree | c7842567ee9140d013cf1f14a7cd5087f88cc3cb /test | |
parent | 9cd5866a292b1d653651237802d80393a9081528 (diff) | |
download | jquery-8cb8ae27d8e0c732b711d73d2ef71125b0a7769b.tar.gz jquery-8cb8ae27d8e0c732b711d73d2ef71125b0a7769b.zip |
Added test for passing null to .show()
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/fx.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/unit/fx.js b/test/unit/fx.js index c2bf6b43f..e1793ec1f 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('<div id="show-tests"><div><p><a href="#"></a></p><code></code><pre></pre><span></span></div><table><thead><tr><th></th></tr></thead><tbody><tr><td></td></tr></tbody></table><ul><li></li></ul></div>'); var old = jQuery("#show-tests table").show().css("display") !== "table"; |