vendor/assets/coffeescripts/jasmine-extensions.coffee in jasmine-headless-webkit-0.7.3.2 vs vendor/assets/coffeescripts/jasmine-extensions.coffee in jasmine-headless-webkit-0.8.0.alpha.1

- old
+ new

@@ -71,11 +71,14 @@ jasmine.WaitsBlock.prototype._execute = jasmine.WaitsBlock.prototype.execute jasmine.WaitsForBlock.prototype._execute = jasmine.WaitsForBlock.prototype.execute pauseAndRun = (onComplete) -> JHW.timerPause() + jasmine.getEnv().reporter.reportSpecWaiting() + this._execute -> + jasmine.getEnv().reporter.reportSpecRunning() JHW.timerDone() onComplete() jasmine.WaitsBlock.prototype.execute = pauseAndRun jasmine.WaitsForBlock.prototype.execute = pauseAndRun @@ -86,5 +89,15 @@ # always three up? result.expectations = jasmine.NestedResults.parseAndStore(arguments.callee.caller.caller.caller.toString()) this.addResult_(result) + + for method in [ "reportSpecWaiting", "reportSpecRunning" ] + generator = (method) -> + (args...) -> + for reporter in @subReporters_ + if reporter[method]? + reporter[method](args...) + + jasmine.MultiReporter.prototype[method] = generator(method) +