/** * Created with JetBrains PhpStorm. * User: dongyancen * Date: 13-10-17 * Time: 上午2:24 * To change this template use File | Settings | File Templates. */ /** * rewrite jasmine function to support batchrun */ (function() { if (!jasmine) return; var s = jasmine.Queue.prototype.start // ,n = jasmine.Queue.prototype.next_ ,f = jasmine.Runner.prototype.finishCallback; function _f(self,args /* failures, total */) { //todo 写到调用HtmlReporter后 /*another way to apply: * * var reporterView = self.env.reporter.subReporters_[0].getReporterView(); *totalSpecCount,completeSpecCount,failedCount,passedCount *reporterView.views.specs[0].detail * */ var totalSpecCount = 0,failedCount = 0,passedCount = 0; var tmpSpec = null; for(var i=0;i