fixed possible uncaught error when calling abort()
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -926,7 +926,7 @@ Tester.prototype.comment = function comment(message) { | ... | @@ -926,7 +926,7 @@ Tester.prototype.comment = function comment(message) { |
926 | Tester.prototype.done = function done() { | 926 | Tester.prototype.done = function done() { |
927 | "use strict"; | 927 | "use strict"; |
928 | /*jshint maxstatements:20, maxcomplexity:20*/ | 928 | /*jshint maxstatements:20, maxcomplexity:20*/ |
929 | var planned, config = this.currentSuite.config; | 929 | var planned, config = this.currentSuite && this.currentSuite.config || {}; |
930 | if (utils.isNumber(arguments[0])) { | 930 | if (utils.isNumber(arguments[0])) { |
931 | this.casper.warn('done() `planned` arg is deprecated as of 1.1'); | 931 | this.casper.warn('done() `planned` arg is deprecated as of 1.1'); |
932 | planned = arguments[0]; | 932 | planned = arguments[0]; | ... | ... |
-
Please register or sign in to post a comment