aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorOleg Gaidarenko <markelog@gmail.com>2015-12-22 14:17:53 +0300
committerOleg Gaidarenko <markelog@gmail.com>2015-12-22 14:17:53 +0300
commit82d10848c66e33a221e1231f400c8a3ab5edb798 (patch)
tree2898aef30238a129b0845b6350dfde3e226dbe8b /test
parentb87e93bdc92dfcb96fcd5ef26e528cbfaa42c8bf (diff)
downloadjquery-82d10848c66e33a221e1231f400c8a3ab5edb798.tar.gz
jquery-82d10848c66e33a221e1231f400c8a3ab5edb798.zip
Revert "Core: make isNumeric limited to strings and numbers"
This reverts commit ada073e9acfc9a103b13b9b69d26590e1c834d04.
Diffstat (limited to 'test')
-rw-r--r--test/unit/core.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/core.js b/test/unit/core.js
index 768519889..c0edd3dcd 100644
--- a/test/unit/core.js
+++ b/test/unit/core.js
@@ -479,8 +479,8 @@ QUnit.test( "isNumeric", function( assert ) {
assert.ok( t( 1.5999999999999999 ), "Very precise floating point number" );
assert.ok( t( 8e5 ), "Exponential notation" );
assert.ok( t( "123e-2" ), "Exponential notation string" );
+ assert.ok( t( new ToString( "42" ) ), "Custom .toString returning number" );
- assert.equal( t( new ToString( "42" ) ), false, "Custom .toString returning number" );
assert.equal( t( "" ), false, "Empty string" );
assert.equal( t( " " ), false, "Whitespace characters string" );
assert.equal( t( "\t\t" ), false, "Tab characters string" );