+
+ jQuery("#nothiddendivchild").css({ height: 20, padding: "3px", border: "2px solid #fff" });
+ equals(jQuery("#nothiddendivchild").height(), 20, "Test child height with border and padding");
+ jQuery("#nothiddendiv, #nothiddendivchild").css({ border: "", padding: "", height: "" });
+
+ var blah = jQuery("blah");
+ equals( blah.height( val(10) ), blah, "Make sure that setting a height on an empty set returns the set." );
+ equals( blah.height(), null, "Make sure 'null' is returned on an empty set");
+}
+
+test("height()", function() {
+ testHeight( pass );
+});
+
+test("height() with function", function() {
+ testHeight( fn );
+});
+
+test("height() with function args", function() {
+ expect( 2 );
+
+ var $div = jQuery("#nothiddendiv");
+ $div.height( 30 ).height(function(i, height) {
+ equals( height, 30, "Make sure previous value is corrrect." );
+ return height + 1;
+ });
+
+ equals( $div.height(), 31, "Make sure value was modified correctly." );