Skip to content

Commit

Permalink
Bug 1381399 - Don't try to close reftest window if it's already close…
Browse files Browse the repository at this point in the history
…d, r=ato

If the run ended with the reftest window closed e.g. because the final
test timed out, we shouldn't try to close it again, since that results
in an error.

MozReview-Commit-ID: 7FW96EkfgBG
  • Loading branch information
jgraham committed Jul 20, 2017
1 parent 2765434 commit e276439
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion testing/marionette/reftest.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,9 @@ min-width: 600px; min-height: 600px; max-width: 600px; max-height: 600px`;
}

abort() {
this.driver.close();
if (this.reftestWin) {
this.driver.close();
}
this.reftestWin = null;
}

Expand Down

0 comments on commit e276439

Please sign in to comment.