diff options
author | Anton Ryzhov <anton@ryzhov.me> | 2011-08-17 18:56:21 +0400 |
---|---|---|
committer | Anton Ryzhov <anton@ryzhov.me> | 2011-08-17 18:56:21 +0400 |
commit | 190136cf6132620327a86274fb108fabf55a1d4f (patch) | |
tree | 114e21d8e47473938122424740ac10ca35021867 /test | |
parent | 9c18eb2c15a762b4f3137fef9897914c80083a89 (diff) | |
download | jquery-190136cf6132620327a86274fb108fabf55a1d4f.tar.gz jquery-190136cf6132620327a86274fb108fabf55a1d4f.zip |
Unit test for this case
Codestyle fixes
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/core.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/unit/core.js b/test/unit/core.js index 8c285f6dd..6e245adf7 100644 --- a/test/unit/core.js +++ b/test/unit/core.js @@ -916,6 +916,16 @@ test("jQuery.makeArray", function(){ same( jQuery.makeArray({length: "5"}), [], "Make sure object is coerced properly."); }); +test("jQuery.inArray", function(){ + expect(3); + + equals( jQuery.inArray( 0, false ), -1 , "Search in 'false' as array returns -1 and doesn't throw exception" ); + + equals( jQuery.inArray( 0, null ), -1 , "Search in 'null' as array returns -1 and doesn't throw exception" ); + + equals( jQuery.inArray( 0, undefined ), -1 , "Search in 'undefined' as array returns -1 and doesn't throw exception" ); +}); + test("jQuery.isEmptyObject", function(){ expect(2); |