X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=test%2Funit%2Fcss.js;h=632464bcd44b4f483f6226bc2d0c3c1e7e3075e0;hb=22ccbf82c8badd1d46f5ea52a0a7d5f3935a9fca;hp=8a4909689dc2de86439a96a7713c732631e5ac02;hpb=2866f16c09cce43044d721563a7bdbd9170fb494;p=jquery.git diff --git a/test/unit/css.js b/test/unit/css.js index 8a49096..632464b 100644 --- a/test/unit/css.js +++ b/test/unit/css.js @@ -1,7 +1,7 @@ module("css"); test("css(String|Hash)", function() { - expect(33); + expect(34); equals( jQuery('#main').css("display"), 'block', 'Check for css property "display"'); @@ -19,6 +19,8 @@ test("css(String|Hash)", function() { equals( parseFloat(jQuery('#nothiddendiv').css('width')), width, 'Test negative width ignored') equals( parseFloat(jQuery('#nothiddendiv').css('height')), height, 'Test negative height ignored') + equals( jQuery('
').css('display'), 'none', 'Styles on disconnected nodes'); + jQuery('#floatTest').css({'float': 'right'}); equals( jQuery('#floatTest').css('float'), 'right', 'Modified CSS float using "float": Assert float is right'); jQuery('#floatTest').css({'font-size': '30px'});