Revert "[Finishes #45476285] Add timeout support to async tests"

This reverts commit 8f5d0beb8c.

Async timeout support is just not ready for prime time.
This commit is contained in:
Colin O'Byrne and JR Boyens
2013-07-24 14:38:57 -07:00
parent 8f5d0beb8c
commit 051f3499ec
6 changed files with 8 additions and 95 deletions

View File

@@ -1,14 +1,13 @@
getJasmineRequireObj().Env = function(j$) {
function Env(options) {
options = options || {};
var self = this;
var global = options.global || j$.getGlobal();
var catchExceptions = true;
var realSetTimeout = j$.getGlobal().setTimeout;
var realClearTimeout = j$.getGlobal().clearTimeout;
this.clock = new j$.Clock(global, new j$.DelayedFunctionScheduler());
var spies = [];
@@ -121,13 +120,9 @@ getJasmineRequireObj().Env = function(j$) {
}
}
var asyncSpecTimeout = 60000;
var queueRunnerFactory = function(options) {
options.catchException = self.catchException;
options.clearStack = options.clearStack || clearStack;
options.realTimer = { setTimeout: realSetTimeout, clearTimeout: realClearTimeout };
options.asyncSpecTimeout = asyncSpecTimeout;
new j$.QueueRunner(options).run(options.fns, 0);
};