aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/css.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/css.js')
-rw-r--r--test/unit/css.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/unit/css.js b/test/unit/css.js
index 67bd332a4..09839f185 100644
--- a/test/unit/css.js
+++ b/test/unit/css.js
@@ -813,12 +813,13 @@ testIframeWithCallback( "css('width') should work correctly before document read
);
test("certain css values of 'normal' should be convertable to a number, see #8627", function() {
- expect ( 2 );
+ expect ( 3 );
var el = jQuery("<div style='letter-spacing:normal;font-weight:normal;'>test</div>").appendTo("#qunit-fixture");
ok( jQuery.isNumeric( parseFloat( el.css("letterSpacing") ) ), "css('letterSpacing') not convertable to number, see #8627" );
ok( jQuery.isNumeric( parseFloat( el.css("fontWeight") ) ), "css('fontWeight') not convertable to number, see #8627" );
+ equal( typeof el.css( "fontWeight" ), "string", ".css() returns a string" );
});
// only run this test in IE9