Commit 14a9a8bd 14a9a8bd3a846c9a16f1d947f627cb48a6ecd6a9 by Nicolas Perriault

better check for planned tests

1 parent 90bec9fa
......@@ -830,9 +830,10 @@ Tester.prototype.done = function done(planned) {
if (arguments.length > 0) {
this.casper.warn('done() `planned` arg is deprecated as of 1.1');
}
if (this.currentSuite && this.currentSuite.planned !== this.executed) {
if (this.currentSuite && this.currentSuite.planned && this.currentSuite.planned !== this.executed) {
this.dubious(this.currentSuite.planned, this.executed);
} else if (planned && planned !== this.executed) {
// BC
this.dubious(planned, this.executed);
}
if (this.currentSuite) {
......