do the ping better

This commit is contained in:
John Bintz 2011-11-10 14:18:25 -05:00
parent 26762f0586
commit 91d9773933
2 changed files with 8 additions and 0 deletions

View File

@ -25,6 +25,10 @@ if window.JHW
parts.push('')
parts.join("||")
jasmine.Spec.prototype.finishCallback = ->
JHW.ping()
this.env.reporter.reportSpecResults(this)
jasmine.Spec.prototype.fail = (e) ->
if e and e.sourceURL and window.CoffeeScriptToFilename
filename = e.sourceURL.split('/').pop()

View File

@ -27,6 +27,10 @@
}
return parts.join("||");
};
jasmine.Spec.prototype.finishCallback = function() {
JHW.ping();
return this.env.reporter.reportSpecResults(this);
};
jasmine.Spec.prototype.fail = function(e) {
var expectationResult, filename, realFilename;
if (e && e.sourceURL && window.CoffeeScriptToFilename) {