From: Daniel Herman Date: Fri, 19 Jul 2013 01:17:29 +0000 (-0400) Subject: No ticket: add assertions for jQuery.when( array ). Close gh-1312. (cherry-picked... X-Git-Tag: 1.11.0-beta1~73 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=bc2b13915ceb266c5b45d52bda32258ed62cdce2;p=jquery.git No ticket: add assertions for jQuery.when( array ). Close gh-1312. (cherry-picked from 584a4af9c8633b35fe49152c81977de03f885826) --- 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(