Be sure to clean up the previous test.
authorjeresig <jeresig@gmail.com>
Fri, 22 Oct 2010 04:29:52 +0000 (00:29 -0400)
committerjeresig <jeresig@gmail.com>
Fri, 22 Oct 2010 04:29:52 +0000 (00:29 -0400)
test/unit/css.js

index ed8f919..8f24e2e 100644 (file)
@@ -29,6 +29,8 @@ test("css(String|Hash)", function() {
        equals( div2.find("textarea").css("width"), "0px", "Width on hidden textarea." );
        equals( div2.find("textarea").css("height"), "0px", "Height on hidden textarea." );
 
+       div2.remove();
+
        // handle negative numbers by ignoring #1599, #4216
        jQuery('#nothiddendiv').css({ 'width': 1, 'height': 1 });