Commit b70cdb7f b70cdb7f4c52f64dae9550523c5d4d53f8d089c1 by Nicolas Perriault

fixed cannot chain sync and async tests

1 parent 484639be
...@@ -709,13 +709,14 @@ Tester.prototype.begin = function begin(description, suiteFn) { ...@@ -709,13 +709,14 @@ Tester.prototype.begin = function begin(description, suiteFn) {
709 "use strict"; 709 "use strict";
710 description = description || "Untitled suite in " + this.currentTestFile; 710 description = description || "Untitled suite in " + this.currentTestFile;
711 this.comment(description); 711 this.comment(description);
712 this.executed = 0;
713 this.currentSuite = new TestSuiteResult({ 712 this.currentSuite = new TestSuiteResult({
714 name: description, 713 name: description,
715 file: this.currentTestFile 714 file: this.currentTestFile
716 }); 715 });
716 this.executed = 0;
717 this.running = true;
717 try { 718 try {
718 suiteFn.call(this, this.casper); 719 suiteFn.call(this, this, this.casper);
719 } catch (e) { 720 } catch (e) {
720 this.uncaughtError(e, this.currentTestFile, e.line); 721 this.uncaughtError(e, this.currentTestFile, e.line);
721 this.done(); 722 this.done();
......