- equals( blah.height(10), blah, "Make sure that setting a height on an empty set returns the set." );
+ 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");
+
+ jQuery.removeData($div[0], 'olddisplay', true);
+}
+
+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." );