diff --git a/test/unit/effects.js b/test/unit/effects.js
index cc6d36512..ed6faa952 100644
--- a/test/unit/effects.js
+++ b/test/unit/effects.js
@@ -516,7 +516,12 @@ jQuery.each( {
if ( t_h == "show" ) {
var old_h = jQuery.css(this, "height");
jQuery(this).append("
Some more text
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();