From e9be4660e12b438af643ed635893121e7a96b701 Mon Sep 17 00:00:00 2001 From: Tobie Langel Date: Sun, 6 Jan 2008 07:38:02 +0000 Subject: [PATCH] prototype: unittest.js cleanup. --- test/lib/unittest.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/lib/unittest.js b/test/lib/unittest.js index 1ab67db..561eebe 100644 --- a/test/lib/unittest.js +++ b/test/lib/unittest.js @@ -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];