Permalink
Showing
with
4 additions
and 2 deletions.
- +3 −1 test/data/testinit.js
- +1 −1 test/data/testrunner.js
@@ -194,7 +194,9 @@ function ajaxTest( title, expect, options ) { | ||
options.afterSend( request ); | ||
} | ||
|
||
return request.then( callIfDefined( "done", "success" ), callIfDefined( "fail", "error" ) ); | ||
return request | ||
This comment has been minimized.
This comment has been minimized.
dmethvin
Member
|
||
.done( callIfDefined( "done", "success" ) ) | ||
.fail( callIfDefined( "fail", "error" ) ); | ||
}); | ||
|
||
jQuery.when.apply( jQuery, requests ).always( complete, options.teardown, start); | ||
I see this passes in testswarm but i have a feeling it's just by luck (and I have a feeling that's what makes test fail in IE10)... Now we feed
$.when
requests that will fail and will immediately end the join. Maybe using a counter (a modification ofcomplete
could handle it and be fed to the done and fail calls) would help achieve what you're looking for (rather than$.when
)... it would also fix our concerns regarding speed by limiting the overhead of usingajaxTest
.