Remove obsolete MessageResult

- jasmine.log is no longer supported.
This commit is contained in:
Rajan Agaskar
2012-12-07 16:43:27 -08:00
parent 4318de4647
commit 98c99c4ebb
4 changed files with 0 additions and 73 deletions

View File

@@ -37,14 +37,6 @@ jasmine.NestedResults.prototype.rollupCounts = function(result) {
this.failedCount += result.failedCount;
};
/**
* Adds a log message.
* @param values Array of message parts which will be concatenated later.
*/
jasmine.NestedResults.prototype.log = function(values) {
this.items_.push(new jasmine.MessageResult(values));
};
/**
* Getter for the results: message & results.
*/

View File

@@ -61,25 +61,6 @@ jasmine.getGlobal = function() {
return getGlobal();
};
jasmine.MessageResult = function(values) {
this.type = 'log';
this.values = values;
this.trace = new Error(); // todo: test better
};
jasmine.MessageResult.prototype.toString = function() {
var text = "";
for (var i = 0; i < this.values.length; i++) {
if (i > 0) text += " ";
if (jasmine.isString_(this.values[i])) {
text += this.values[i];
} else {
text += jasmine.pp(this.values[i]);
}
}
return text;
};
/**
* Getter for the Jasmine environment. Ensures one gets created
*/