From: jeresig Date: Thu, 23 Sep 2010 03:43:55 +0000 (-0400) Subject: Discovered that another effects bug was fixed with the recent CSS changes (namely... X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=2f603359fecca5b4873c45775b293702a2c651e3;p=jquery.git Discovered that another effects bug was fixed with the recent CSS changes (namely that show animations always went to auto, even if they weren't supposed to). Test suite adjusted accordingly. --- diff --git a/test/unit/effects.js b/test/unit/effects.js index cc6d365..ed6faa9 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();