diff options
author | Daniel Herman <daniel.c.herman@gmail.com> | 2013-07-18 21:17:29 -0400 |
---|---|---|
committer | Michał Gołębiowski <m.goleb@gmail.com> | 2013-08-19 18:25:42 +0200 |
commit | 584a4af9c8633b35fe49152c81977de03f885826 (patch) | |
tree | b513233d27fa8b0358d313105837a69249774560 /test | |
parent | 3e3680c2cdc524ee9194ef27fdce318cf301144c (diff) | |
download | jquery-584a4af9c8633b35fe49152c81977de03f885826.tar.gz jquery-584a4af9c8633b35fe49152c81977de03f885826.zip |
No ticket: add assertions for jQuery.when( array ). Close gh-1312.
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/deferred.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/unit/deferred.js b/test/unit/deferred.js index 4e545303d..6e4d5c440 100644 --- a/test/unit/deferred.js +++ b/test/unit/deferred.js @@ -316,7 +316,7 @@ test( "jQuery.Deferred.then - context", function() { test( "jQuery.when", function() { - expect( 34 ); + expect( 37 ); // Some other objects jQuery.each({ @@ -328,7 +328,9 @@ test( "jQuery.when", function() { "false": false, "null": null, "undefined": undefined, - "a plain object": {} + "a plain object": {}, + "an array": [ 1, 2, 3 ] + }, function( message, value ) { ok( jQuery.isFunction( |