assertEvent(fittingType, userInitiated) {
    chrome.test.assertEq('fit-to-changed', this.lastEvent_.type);
    chrome.test.assertEq(fittingType, this.lastEvent_.detail.fittingType);
    chrome.test.assertEq(userInitiated, this.lastEvent_.detail.userInitiated);
    this.lastEvent_ = null;
  }
/**
   * Asserts the last event has the expected payload.
   * @param {FittingType} fittingType Expected fitting type.
   * @param {boolean} userInitiated Expected "is user initiated" flag.
   */
Asserts the last event has the expected payload.
@param {FittingType} fittingType Expected fitting type.
@param {boolean} userInitiated Expected "is user initiated" flag.
Asserts the last event has the expected payload . @param { FittingType } fittingType Expected fitting type . @param { boolean } userInitiated Expected " is user initiated " flag .
assertEvent(fittingType, userInitiated) {
    chrome.test.assertEq('fit-to-changed', this.lastEvent_.type);
    chrome.test.assertEq(fittingType, this.lastEvent_.detail.fittingType);
    chrome.test.assertEq(userInitiated, this.lastEvent_.detail.userInitiated);
    this.lastEvent_ = null;
  }
assertEvent ( fittingType , userInitiated ) { chrome . test . assertEq ( 'fit-to-changed' , this . lastEvent_ . type ) ; chrome . test . assertEq ( fittingType , this . lastEvent_ . detail . fittingType ) ; chrome . test . assertEq ( userInitiated , this . lastEvent_ . detail . userInitiated ) ; this . lastEvent_ = null ; }
Asserts the last event has the expected payload.
Asserts the last event has the expected payload .