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,6 → 893,7 |
run: function (spec) { |
var hasSetUp = false; |
var hasTearDown = false; |
var tests; |
|
if (spec) |
{ |
911,14 → 912,13 |
this._tearDown = spec.tearDown; |
} |
|
var tests = spec.tests; |
if (tests) |
if (spec.tests) |
{ |
this.setTests(tests); |
this.setTests(spec.tests); |
} |
} |
|
var tests = this._tests; |
tests = this._tests; |
if (tests.length == 0) |
{ |
return this._printMsg("No tests defined.", "info"); |