Correcting some imperfections in test added in previous commit.
[jquery.git] / test / unit / effects.js
index f82c4b1..ed6faa9 100644 (file)
@@ -392,7 +392,7 @@ jQuery.each( {
                return prop == "opacity" ? 1 : "";
        },
        "JS Auto": function(elem,prop){
-               jQuery(elem).css(prop,"auto")
+               jQuery(elem).css(prop,"")
                        .text("This is a long string of text.");
                return prop == "opacity" ? 1 : "";
        },
@@ -516,7 +516,12 @@ jQuery.each( {
                                if ( t_h == "show" ) {
                                        var old_h = jQuery.css(this, "height");
                                        jQuery(this).append("<br/>Some more text<br/>and some more...");
-                                       notEqual(jQuery.css(this, "height") + "px", old_h, "Make sure height is auto.");
+
+                                       if ( /Auto/.test( fn ) ) {
+                                               notEqual(jQuery.css(this, "height"), old_h, "Make sure height is auto.");
+                                       } else {
+                                               equals(jQuery.css(this, "height"), old_h, "Make sure height is not auto.");
+                                       }
                                }
        
                                start();