Commit bc2b1391 authored by Daniel Herman's avatar Daniel Herman Committed by Michał Gołębiowski

No ticket: add assertions for jQuery.when( array ). Close gh-1312....

No ticket: add assertions for jQuery.when( array ). Close gh-1312. (cherry-picked from 584a4af9)
parent b414efdd
...@@ -316,7 +316,7 @@ test( "jQuery.Deferred.then - context", function() { ...@@ -316,7 +316,7 @@ test( "jQuery.Deferred.then - context", function() {
test( "jQuery.when", function() { test( "jQuery.when", function() {
expect( 34 ); expect( 37 );
// Some other objects // Some other objects
jQuery.each({ jQuery.each({
...@@ -328,7 +328,9 @@ test( "jQuery.when", function() { ...@@ -328,7 +328,9 @@ test( "jQuery.when", function() {
"false": false, "false": false,
"null": null, "null": null,
"undefined": undefined, "undefined": undefined,
"a plain object": {} "a plain object": {},
"an array": [ 1, 2, 3 ]
}, function( message, value ) { }, function( message, value ) {
ok( ok(
jQuery.isFunction( jQuery.isFunction(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment