Extract tree running out into a separate class

This commit is contained in:
Steve Gravrock
2025-08-18 16:50:04 -07:00
parent a3e1abfa12
commit 63774597f0
6 changed files with 489 additions and 322 deletions

View File

@@ -101,16 +101,18 @@ getJasmineRequireObj().TreeProcessor = function(j$) {
}
class ExecutionTree {
#topSuite;
#stats;
constructor(topSuite, stats) {
this.#topSuite = topSuite;
Object.defineProperty(this, 'topSuite', {
writable: false,
value: topSuite
});
this.#stats = stats;
}
childrenOfTopSuite() {
return this.childrenOfSuiteSegment(this.#topSuite, 0);
return this.childrenOfSuiteSegment(this.topSuite, 0);
}
childrenOfSuiteSegment(suite, segmentNumber) {