dwf/rva: refactor reporter abstract and jasmine into three distinct report functions for specs, suites, and runners.
This commit is contained in:
@@ -1,9 +1,13 @@
|
||||
JasmineReporters.JSON = function (elementId) {
|
||||
var that = JasmineReporters.reporter(elementId);
|
||||
|
||||
that.addResults = function (results) {
|
||||
that.reportRunnerResults = function (results) {
|
||||
that.output = Object.toJSON(results);
|
||||
}
|
||||
|
||||
if (that.element) {
|
||||
that.element.innerHTML += that.output;
|
||||
}
|
||||
}
|
||||
|
||||
return that;
|
||||
}
|
||||
@@ -11,9 +15,13 @@ JasmineReporters.JSON = function (elementId) {
|
||||
JasmineReporters.IncrementalJSON = function (elementId) {
|
||||
var that = JasmineReporters.reporter(elementId);
|
||||
|
||||
that.addSpecResults = function (results) {
|
||||
that.reportSpecResults = function (results) {
|
||||
that.output = Object.toJSON(results);
|
||||
if (that.element) {
|
||||
that.element.innerHTML += that.output;
|
||||
}
|
||||
}
|
||||
|
||||
return that;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user