]> source.dussan.org Git - jquery.git/commitdiff
Test CSS test on font size instead of padding.
authorjeresig <jeresig@gmail.com>
Wed, 13 Oct 2010 04:32:52 +0000 (00:32 -0400)
committerjeresig <jeresig@gmail.com>
Wed, 13 Oct 2010 04:32:52 +0000 (00:32 -0400)
test/unit/css.js

index ff17149d275b66dfcf5eb485961b3e7001d056d5..ecf36a913156daf5c2d718962a629421c6670ab6 100644 (file)
@@ -113,8 +113,8 @@ test("css(String, Object)", function() {
 
        // using contents will get comments regular, text, and comment nodes
        var j = jQuery("#nonnodes").contents();
-       j.css("padding-left", "1px");
-       equals( j.css("padding-left"), "1px", "Check node,textnode,comment css works" );
+       j.css("fontSize", "1px");
+       equals( j.css("fontSize"), "1px", "Check node,textnode,comment css works" );
 
        // opera sometimes doesn't update 'display' correctly, see #2037
        jQuery("#t2037")[0].innerHTML = jQuery("#t2037")[0].innerHTML