call back when done
This commit is contained in:
@@ -47,7 +47,11 @@ describe("TrivialConsoleReporter", function() {
|
||||
};
|
||||
})();
|
||||
|
||||
this.reporter = new jasmine.TrivialConsoleReporter(this.out.print);
|
||||
this.done = false
|
||||
var self = this
|
||||
this.reporter = new jasmine.TrivialConsoleReporter(this.out.print, function(runner){
|
||||
self.done = true
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@@ -408,6 +412,16 @@ describe("TrivialConsoleReporter", function() {
|
||||
});
|
||||
});
|
||||
|
||||
describe("done callback", function(){
|
||||
it("calls back when done", function() {
|
||||
expect(this.done).toBeFalsy();
|
||||
this.reporter.reportRunnerResults({
|
||||
results:function(){return {items_: [null, null, null], totalCount: 7, failedCount: 0};}
|
||||
});
|
||||
expect(this.done).toBeTruthy();
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user