X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=test%2Funit%2Feffects.js;h=ed6faa952808fe21724cb4305f3e5b3bf71580a0;hb=dc4c9abc39ce7eda44ff8878d476db1e57b7bc46;hp=f82c4b17788c0e255e460d7fd5860227e01a50d9;hpb=1f667aa035b3e4885d6b35fa9aa4990310f131af;p=jquery.git diff --git a/test/unit/effects.js b/test/unit/effects.js index f82c4b1..ed6faa9 100644 --- a/test/unit/effects.js +++ b/test/unit/effects.js @@ -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("
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();