No ticket: add assertions for jQuery.when( array ). Close gh-1312. (cherry-picked from 584a4af9c8633b35fe49152c81977de03f885826)