diff options
author | Dave Methvin <dave.methvin@gmail.com> | 2014-03-03 20:55:30 -0500 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2014-03-04 21:50:42 -0500 |
commit | 4adc5b2217c014ab5afc29705a93e968e127c247 (patch) | |
tree | 1f6dc188736b7ea32c49329c15361db7f9c0b819 /test | |
parent | 93fdfa2d8c641744a4be84cc4bc4d54b83a909df (diff) | |
download | jquery-4adc5b2217c014ab5afc29705a93e968e127c247.tar.gz jquery-4adc5b2217c014ab5afc29705a93e968e127c247.zip |
CSS: Return values should be numbers
Fixes #14792
(cherry picked from commit f4b37d89820535d6c7503925aa8872645681a865)
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/css.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/unit/css.js b/test/unit/css.js index 2209f1a40..e084ebf60 100644 --- a/test/unit/css.js +++ b/test/unit/css.js @@ -871,12 +871,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 |