Permalink
Browse files

Merge pull request #438 from ochameau/fix/undefined-properties-during…

…-test-failure

Avoid strict warnings when a test is failing. r=@gozala
  • Loading branch information...
ochameau committed May 16, 2012
2 parents 01c75a6 + a4e04cf commit 9cd5d7fdb8ac4f9b3c7eb06651f2a50733fd13d6
Showing with 2 additions and 0 deletions.
  1. +2 −0 packages/api-utils/lib/unit-test.js
@@ -43,6 +43,8 @@ TestRunner.prototype = {
PAUSE_DELAY: 500,
_logTestFailed: function _logTestFailed(why) {
+ if (!(why in this.test.errors))
+ this.test.errors[why] = 0;
this.test.errors[why]++;
if (!this.testFailureLogged) {
this.console.error("TEST FAILED: " + this.test.name + " (" + why + ")");

0 comments on commit 9cd5d7f

Please sign in to comment.