]> source.dussan.org Git - jquery.git/commitdiff
No ticket: add assertions for jQuery.when( array ). Close gh-1312. (cherry-picked...
authorDaniel Herman <daniel.c.herman@gmail.com>
Fri, 19 Jul 2013 01:17:29 +0000 (21:17 -0400)
committerMichał Gołębiowski <m.goleb@gmail.com>
Mon, 19 Aug 2013 16:26:57 +0000 (18:26 +0200)
test/unit/deferred.js

index 4e545303d413fcc6c18dff75138fd3abf4d64e92..6e4d5c44080c26ee2dee231e67040566ea868642 100644 (file)
@@ -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(