Remove Env's calculation of executionTime

[#45659879]
This commit is contained in:
Sheel Choksi
2013-07-03 14:12:19 -07:00
parent 179e54b9fb
commit 34b8bf5fb0
3 changed files with 6 additions and 21 deletions

View File

@@ -2,8 +2,7 @@ getJasmineRequireObj().Env = function(j$) {
function Env(options) {
options = options || {};
var self = this;
var global = options.global || j$.getGlobal(),
now = options.now || function() { return new Date().getTime(); };
var global = options.global || j$.getGlobal();
var catchExceptions = true;
@@ -194,13 +193,10 @@ getJasmineRequireObj().Env = function(j$) {
};
this.execute = function() {
var startTime = now();
this.reporter.jasmineStarted({
totalSpecsDefined: totalSpecsDefined
});
this.topSuite.execute(function() {
self.reporter.jasmineDone({executionTime: now() - startTime});
});
this.topSuite.execute(self.reporter.jasmineDone);
};
}