Skip to content

Commit

Permalink
Remove obsolete NestedResults
Browse files Browse the repository at this point in the history
  • Loading branch information
Davis W. Frank & Rajan Agaskar committed Dec 8, 2012
1 parent 4355249 commit be6b87a
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 202 deletions.
73 changes: 0 additions & 73 deletions lib/jasmine-core/jasmine.js
Expand Up @@ -1484,79 +1484,6 @@ jasmine.MultiReporter.prototype.addReporter = function(reporter) {
})(functionName);
}
})();
/**
* Holds results for a set of Jasmine spec. Allows for the results array to hold another jasmine.NestedResults
*
* @constructor
*/
jasmine.NestedResults = function() {
/**
* The total count of results
*/
this.totalCount = 0;
/**
* Number of passed results
*/
this.passedCount = 0;
/**
* Number of failed results
*/
this.failedCount = 0;
/**
* Was this suite/spec skipped?
*/
this.skipped = false;
/**
* @ignore
*/
this.items_ = [];
};

/**
* Roll up the result counts.
*
* @param result
*/
jasmine.NestedResults.prototype.rollupCounts = function(result) {
this.totalCount += result.totalCount;
this.passedCount += result.passedCount;
this.failedCount += result.failedCount;
};

/**
* Getter for the results: message & results.
*/
jasmine.NestedResults.prototype.getItems = function() {
return this.items_;
};

/**
* Adds a result, tracking counts (total, passed, & failed)
* @param {jasmine.ExpectationResult|jasmine.NestedResults} result
*/
//TODO: Results are meant for consumption by reporters, not internally.
jasmine.NestedResults.prototype.addResult = function(result) {
if (result.type != 'log') {
if (result.items_) {
this.rollupCounts(result);
} else {
this.totalCount++;
if (result.passed) {
this.passedCount++;
} else {
this.failedCount++;
}
}
}
this.items_.push(result);
};

/**
* @returns {Boolean} True if <b>everything</b> below passed
*/
jasmine.NestedResults.prototype.passed = function() {
return this.passedCount === this.totalCount;
};
/**
* Base class for pretty printing for expectation results.
*/
Expand Down
54 changes: 0 additions & 54 deletions spec/core/NestedResultsSpec.js

This file was deleted.

1 change: 0 additions & 1 deletion spec/runner.html
Expand Up @@ -36,7 +36,6 @@
<script type="text/javascript" src=".././spec/core/ClockSpec.js"></script>
<script type="text/javascript" src=".././spec/core/DelayedFunctionSchedulerSpec.js"></script>
<script type="text/javascript" src=".././spec/core/MultiReporterSpec.js"></script>
<script type="text/javascript" src=".././spec/core/NestedResultsSpec.js"></script>
<script type="text/javascript" src=".././spec/core/PrettyPrintSpec.js"></script>
<script type="text/javascript" src=".././spec/core/ReporterSpec.js"></script>
<script type="text/javascript" src=".././spec/core/RunnerSpec.js"></script>
Expand Down
73 changes: 0 additions & 73 deletions src/core/NestedResults.js

This file was deleted.

1 change: 0 additions & 1 deletion tasks/jasmine_dev/sources.rb
Expand Up @@ -9,7 +9,6 @@ class JasmineDev < Thor
"JsApiReporter.js",
"Matchers.js",
"MultiReporter.js",
"NestedResults.js",
"PrettyPrinter.js",
"Queue.js",
"Runner.js",
Expand Down

0 comments on commit be6b87a

Please sign in to comment.