Changed 'type' field of MessageResult and ExpectationResult to 'log' and 'expect', respectively.

This commit is contained in:
Lee Byrd & Christian Williams
2010-06-22 14:48:47 -07:00
parent e7cd6a473a
commit e60f22a2e5
8 changed files with 19 additions and 14 deletions

View File

@@ -52,7 +52,7 @@ jasmine.setInterval = jasmine.bindOriginal_(window, 'setInterval');
jasmine.clearInterval = jasmine.bindOriginal_(window, 'clearInterval');
jasmine.MessageResult = function(values) {
this.type = 'MessageResult';
this.type = 'log';
this.values = values;
this.trace = new Error(); // todo: test better
};
@@ -71,7 +71,7 @@ jasmine.MessageResult.prototype.toString = function() {
};
jasmine.ExpectationResult = function(params) {
this.type = 'ExpectationResult';
this.type = 'expect';
this.matcherName = params.matcherName;
this.passed_ = params.passed;
this.expected = params.expected;