]> source.dussan.org Git - jquery.git/commitdiff
Added test for passing null to .show()
authorScott Gonzalez <sgonzale@sgonzale-laptop.local>
Thu, 12 Nov 2009 23:08:33 +0000 (07:08 +0800)
committerJohn Resig <jeresig@gmail.com>
Fri, 13 Nov 2009 04:23:39 +0000 (12:23 +0800)
test/unit/fx.js

index c2bf6b43ff514ed4ff98c0865e90267c4fc0f54a..e1793ec1fdc95cefd3dc87d34d4078d449fb93f8 100644 (file)
@@ -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";