X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=test%2Funit%2Fcss.js;h=c199ca1ebfbac29158b64f0c30ea417bdd2b640d;hb=b24da33f52f8ce536ae60a6cbffeb2f5cf02bac5;hp=270638e62f2ec00fc1790ca5076dd3a30718b680;hpb=64e4a879f9f92053ac4d58a3fffc0bbff6900b6e;p=jquery.git diff --git a/test/unit/css.js b/test/unit/css.js index 270638e..c199ca1 100644 --- a/test/unit/css.js +++ b/test/unit/css.js @@ -47,8 +47,15 @@ test("css(String|Hash)", function() { child.attr("class", "em"); equals( parseInt(child.css("fontSize")), 32, "Verify fontSize em set." ); + // Have to verify this as the result depends upon the browser's CSS + // support for font-size percentages child.attr("class", "prct"); - equals( parseInt(child.css("fontSize")), 24, "Verify fontSize % set." ); + var prctval = parseInt(child.css("fontSize")), checkval = 0; + if ( prctval === 16 || prctval === 24 ) { + checkval = prctval; + } + + equals( prctval, checkval, "Verify fontSize % set." ); }); test("css(String, Object)", function() {