dwf/rva: Added Incremental Reporter, refactored abstract reporter class, added tests! 78!!!

This commit is contained in:
pivotal
2008-12-04 12:54:54 -08:00
parent 8ee209585d
commit 80e1d6b6e8
5 changed files with 147 additions and 90 deletions
+9 -1
View File
@@ -58,7 +58,7 @@ var nestedResults = function() {
*
**/
var actionCollection = function () {
var that = {
var that = {
actions: [],
index: 0,
finished: false,
@@ -202,7 +202,15 @@ var it = function (description, func) {
that.currentTimeout = 0;
},
finishCallback: function () {
if (Jasmine.reporter) {
Jasmine.reporter.addSpecResults(that.results);
Jasmine.reporter.report();
}
},
finish: function() {
that.finishCallback();
that.finished = true;
},