Bug 831404 - Add more logging to try to debug test failures. r=trivial

This commit is contained in:
Richard Newman 2013-03-25 18:46:22 -07:00
parent f3243ee984
commit e58098035d

View File

@ -912,12 +912,16 @@ DataReportingPolicy.prototype = Object.freeze({
// We're waiting for user action or implicit acceptance after display.
if (notifyState == this.STATE_NOTIFY_WAIT) {
// Check for implicit acceptance.
let implicitAcceptanceDate =
new Date(this._dataSubmissionPolicyNotifiedDate.getTime() +
this.IMPLICIT_ACCEPTANCE_INTERVAL_MSEC);
let implicitAcceptance =
this._dataSubmissionPolicyNotifiedDate.getTime() +
this.IMPLICIT_ACCEPTANCE_INTERVAL_MSEC;
if (now.getTime() < implicitAcceptanceDate.getTime()) {
this._log.debug("Still waiting for reaction or implicit acceptance.");
this._log.debug("Now: " + now.getTime());
this._log.debug("Will accept: " + implicitAcceptance);
if (now.getTime() < implicitAcceptance) {
this._log.debug("Still waiting for reaction or implicit acceptance. " +
"Now: " + now.getTime() + " < " +
"Accept: " + implicitAcceptance);
return false;
}