diff options
author | Jason Bedard <jason+github@jbedard.ca> | 2017-12-12 21:51:49 -0800 |
---|---|---|
committer | Jason Bedard <jason+github@jbedard.ca> | 2018-01-15 20:50:02 -0800 |
commit | c4494d4abc84d368d6597889ab45fc07466f8f26 (patch) | |
tree | ef34afb4d08cbd9dcf8ea7fc65060aeddc6b322c /test/unit/css.js | |
parent | d7237896c79a5a10d85fcdec199c5657a469a92b (diff) | |
download | jquery-c4494d4abc84d368d6597889ab45fc07466f8f26.tar.gz jquery-c4494d4abc84d368d6597889ab45fc07466f8f26.zip |
Core: deprecate jQuery.isNumeric
Fixes gh-2960
Closes gh-3888
Diffstat (limited to 'test/unit/css.js')
-rw-r--r-- | test/unit/css.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/css.js b/test/unit/css.js index 20f8195aa..7859e3fa8 100644 --- a/test/unit/css.js +++ b/test/unit/css.js @@ -1223,8 +1223,8 @@ QUnit.test( "certain css values of 'normal' should be convertable to a number, s var el = jQuery( "<div style='letter-spacing:normal;font-weight:normal;'>test</div>" ).appendTo( "#qunit-fixture" ); - assert.ok( jQuery.isNumeric( parseFloat( el.css( "letterSpacing" ) ) ), "css('letterSpacing') not convertable to number, see #8627" ); - assert.ok( jQuery.isNumeric( parseFloat( el.css( "fontWeight" ) ) ), "css('fontWeight') not convertable to number, see #8627" ); + assert.ok( !isNaN( parseFloat( el.css( "letterSpacing" ) ) ), "css('letterSpacing') not convertable to number, see #8627" ); + assert.ok( !isNaN( parseFloat( el.css( "fontWeight" ) ) ), "css('fontWeight') not convertable to number, see #8627" ); assert.equal( typeof el.css( "fontWeight" ), "string", ".css() returns a string" ); } ); |