prototype: unittest.js cleanup.

This commit is contained in:
Tobie Langel 2008-01-06 07:38:02 +00:00
parent c48c1496ec
commit e9be4660e1
1 changed files with 3 additions and 3 deletions

View File

@ -157,7 +157,7 @@ Test.Unit.Runner = Class.create({
options.resultsURL = this.queryParams.resultsURL;
options.testLog = $(options.testLog);
this.tests = this.getTests(testcases, options);
this.tests = this.getTests(testcases);
this.currentTest = 0;
this.logger = new Test.Unit.Logger(options.testLog);
Event.observe(window, "load", function() {
@ -167,8 +167,8 @@ Test.Unit.Runner = Class.create({
queryParams: window.location.search.parseQuery(),
getTests: function(testcases, options) {
var tests;
getTests: function(testcases) {
var tests, options = this.options;
if (this.queryParams.tests) tests = this.queryParams.tests.split(',');
else if (options.tests) tests = options.tests;
else if (options.test) tests = [option.test];