prototype: Instanciate Test.Unit.Logger on window load.
This commit is contained in:
parent
2ab483b695
commit
78c4b99df7
@ -1,3 +1,7 @@
|
||||
* Instanciate Test.Unit.Logger on window load. [Tobie Langel]
|
||||
|
||||
* Unit tests clean-up. [Tobie Langel]
|
||||
|
||||
* Refactor String#escapeHTML to avoid using the `with` statement. [Tobie Langel]
|
||||
|
||||
* Remove usage of the `with` statement from unit tests. [Tobie Langel]
|
||||
|
@ -155,12 +155,12 @@ Test.Unit.Runner = Class.create({
|
||||
}, arguments[1] || {});
|
||||
|
||||
options.resultsURL = this.queryParams.resultsURL;
|
||||
options.testLog = $(options.testLog);
|
||||
|
||||
this.tests = this.getTests(testcases);
|
||||
this.currentTest = 0;
|
||||
this.logger = new Test.Unit.Logger(options.testLog);
|
||||
|
||||
Event.observe(window, "load", function() {
|
||||
this.logger = new Test.Unit.Logger($(options.testLog));
|
||||
this.runTests.bind(this).delay(0.1);
|
||||
}.bind(this));
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user