Build html support classes (just TrivialReporter for now) into jasmine-html.js.

This commit is contained in:
Lee Byrd & Christian Williams
2010-06-24 17:33:46 -07:00
parent 1057596665
commit 85351f2c1c
6 changed files with 44 additions and 24 deletions

View File

@@ -929,6 +929,10 @@ jasmine.Reporter.prototype.reportRunnerResults = function(runner) {
jasmine.Reporter.prototype.reportSuiteResults = function(suite) {
};
//noinspection JSUnusedLocalSymbols
jasmine.Reporter.prototype.reportSpecStarting = function(spec) {
};
//noinspection JSUnusedLocalSymbols
jasmine.Reporter.prototype.reportSpecResults = function(spec) {
};
@@ -1410,7 +1414,14 @@ jasmine.MultiReporter.prototype.addReporter = function(reporter) {
};
(function() {
var functionNames = ["reportRunnerStarting", "reportRunnerResults", "reportSuiteResults", "reportSpecResults", "log"];
var functionNames = [
"reportRunnerStarting",
"reportRunnerResults",
"reportSuiteResults",
"reportSpecStarting",
"reportSpecResults",
"log"
];
for (var i = 0; i < functionNames.length; i++) {
var functionName = functionNames[i];
jasmine.MultiReporter.prototype[functionName] = (function(functionName) {
@@ -1934,7 +1945,8 @@ jasmine.Spec.prototype.execute = function(onComplete) {
spec.finish(onComplete);
return;
}
this.env.reporter.log('>> Jasmine Running ' + this.suite.description + ' ' + this.description + '...');
this.env.reporter.reportSpecStarting(this);
spec.env.currentSpec = spec;
@@ -2327,5 +2339,5 @@ jasmine.version_= {
"major": 0,
"minor": 11,
"build": 0,
"revision": 1277400646
};
"revision": 1277425679
};