X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=test%2Funit%2Fcss.js;h=1b2598741076e03f6495e11d49a953a3d7e96ef6;hb=e78d3a7e2d47e9796f87c18b76f8178b0bee42c5;hp=ed8f919a85e92f5d397d9049e812cb7c09dc5f16;hpb=e4a38670b10b1ce776afff389bae34991e986180;p=jquery.git diff --git a/test/unit/css.js b/test/unit/css.js index ed8f919..1b25987 100644 --- a/test/unit/css.js +++ b/test/unit/css.js @@ -1,7 +1,7 @@ -module("css"); +module("css", { teardown: moduleTeardown }); test("css(String|Hash)", function() { - expect(42); + expect(41); equals( jQuery('#main').css("display"), 'block', 'Check for css property "display"'); @@ -13,6 +13,8 @@ test("css(String|Hash)", function() { var div = jQuery( "
" ); + // These should be "auto" (or some better value) + // temporarily provide "0px" for backwards compat equals( div.css("width"), "0px", "Width on disconnected node." ); equals( div.css("height"), "0px", "Height on disconnected node." ); @@ -21,13 +23,13 @@ test("css(String|Hash)", function() { equals( div.css("width"), "4px", "Width on disconnected node." ); equals( div.css("height"), "4px", "Height on disconnected node." ); - var div2 = jQuery( "