Files
jasmine/src/html/ResultsNode.js
2025-10-05 06:53:54 -07:00

26 lines
521 B
JavaScript

jasmineRequire.ResultsNode = function() {
'use strict';
function ResultsNode(result, type, parent) {
this.result = result;
this.type = type;
this.parent = parent;
this.children = [];
this.addChild = function(result, type) {
this.children.push(new ResultsNode(result, type, this));
};
this.last = function() {
return this.children[this.children.length - 1];
};
this.updateResult = function(result) {
this.result = result;
};
}
return ResultsNode;
};