Specs/Suites wait for an async spec to finish

Go back to having all suites and specs run asynchronously so that
they properly wait for any async specs that there might be
This commit is contained in:
Sheel Choksi
2013-07-08 23:00:42 -07:00
parent ccdcb293f4
commit aabf8cec82
5 changed files with 35 additions and 17 deletions

View File

@@ -32,13 +32,10 @@ getJasmineRequireObj().QueueRunner = function() {
}
}
var runnerDone = iterativeIndex >= length,
hasBeenAsyncSpec = recursiveIndex > 0;
var runnerDone = iterativeIndex >= length;
if (runnerDone && hasBeenAsyncSpec) {
if (runnerDone) {
this.clearStack(this.onComplete);
} else if(runnerDone) {
this.onComplete();
}
function attempt(fn) {