mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
No ticket: add assertions for jQuery.when( array ). Close gh-1312.
This commit is contained in:
parent
3e3680c2cd
commit
584a4af9c8
@ -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() {
|
|||||||
"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(
|
||||||
|
Loading…
Reference in New Issue
Block a user