Compare Revisions
Last modification
- Rev 643 2016-07-19 20:56:23
- Author: PointedEars
- Log message:
test/test.js: jsx.test.runner.run(): Simplified init
/trunk/test/test.js |
893,7 → 893,6 |
run: function (spec) { |
var hasSetUp = false; |
var hasTearDown = false; |
var tests; |
|
if (spec) |
{ |
912,13 → 911,14 |
this._tearDown = spec.tearDown; |
} |
|
if (spec.tests) |
var tests = spec.tests; |
if (tests) |
{ |
this.setTests(spec.tests); |
this.setTests(tests); |
} |
} |
|
tests = this._tests; |
var tests = this._tests; |
if (tests.length == 0) |
{ |
return this._printMsg("No tests defined.", "info"); |