prototype: Instanciate Test.Unit.Logger on window load.

This commit is contained in:
Tobie Langel 2008-03-16 20:00:07 +00:00
parent 2ab483b695
commit 78c4b99df7
2 changed files with 6 additions and 2 deletions

View File

@ -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]

View File

@ -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));
},