Created
April 12, 2012 05:20
-
-
Save joneath/2364751 to your computer and use it in GitHub Desktop.
This gist can be ran before the jasmine runner starts to stop rendering of successful specs descriptions. This is important in a large test suite as the large amount of DOM manipulation slows down the suite. This will not effect the reporting of failed sp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var specViewProto = jasmine.HtmlReporter.SpecView.prototype; | |
jasmine.HtmlReporter.SpecView = function(spec, dom){ | |
this.spec = spec; | |
this.dom = dom; | |
this.symbol = this.createDom('li', { className: 'pending' }); | |
this.dom.symbolSummary.appendChild(this.symbol); | |
this.detail = $("<div class='description'></div>").get(0); | |
}; | |
jasmine.HtmlReporter.SpecView.prototype = specViewProto; | |
jasmine.HtmlReporter.SpecView.prototype.appendSummaryToSuiteDiv = function(){}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment