Add explicit fail and move on for async functions

- `done` now has a `fail` property which will call the global `fail`
  then continue to the next function in the queue

[finish #73744618] Fix #567 Fix #568
This commit is contained in:
slackersoft
2014-10-02 08:10:29 -07:00
parent 0c77c6cfb5
commit f4e5573ee3
4 changed files with 41 additions and 0 deletions

View File

@@ -170,6 +170,7 @@ getJasmineRequireObj().Env = function(j$) {
options.catchException = catchException;
options.clearStack = options.clearStack || clearStack;
options.timer = {setTimeout: realSetTimeout, clearTimeout: realClearTimeout};
options.fail = self.fail;
new j$.QueueRunner(options).execute();
};