diff options
author | jeresig <jeresig@gmail.com> | 2010-09-22 23:43:55 -0400 |
---|---|---|
committer | jeresig <jeresig@gmail.com> | 2010-09-22 23:43:55 -0400 |
commit | 2f603359fecca5b4873c45775b293702a2c651e3 (patch) | |
tree | b590ea86210053512c46daf0a07815f79f92c8af | |
parent | 6a1d4f1a80e09e3857f25bb6eb7b190a3a9a4de0 (diff) | |
download | jquery-2f603359fecca5b4873c45775b293702a2c651e3.tar.gz jquery-2f603359fecca5b4873c45775b293702a2c651e3.zip |
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.
-rw-r--r-- | test/unit/effects.js | 7 |
1 files changed, 6 insertions, 1 deletions
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("<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(); |