B2G/gecko/toolkit/mozapps/extensions/test/browser/head.js
/***** Mock AddonInstall object for the Mock Provider *****/
Mock AddonInstall object for the Mock Provider
Mock AddonInstall object for the Mock Provider
function MockInstall(aName, aType, aAddonToInstall) {
  this.name = aName || "";
  this._type = aType || "extension";
  this.type = null;
  this.version = "1.0";
  this.iconURL = "";
  this.infoURL = "";
  this.state = AddonManager.STATE_AVAILABLE;
  this.error = 0;
  this.sourceURI = null;
  this.file = null;
  this.progress = 0;
  this.maxProgress = -1;
  this.certificate = null;
  this.certName = "";
  this.existingAddon = null;
  this.addon = null;
  this._addonToInstall = aAddonToInstall;
  this.listeners = [];
  this.testListeners = [];
}
function MockInstall ( aName , aType , aAddonToInstall ) { this . name = aName || "" ; this . _type = aType || "extension" ; this . type = null ; this . version = "1.0" ; this . iconURL = "" ; this . infoURL = "" ; this . state = AddonManager . STATE_AVAILABLE ; this . error = 0 ; this . sourceURI = null ; this . file = null ; this . progress = 0 ; this . maxProgress = - 1 ; this . certificate = null ; this . certName = "" ; this . existingAddon = null ; this . addon = null ; this . _addonToInstall = aAddonToInstall ; this . listeners = [ ] ; this . testListeners = [ ] ; }
Mock AddonInstall object for the Mock Provider
Mock AddonInstall object for the Mock Provider
// Don't expose type until download completed // Another type of install listener for tests that want to check the results // of code run from standard install listeners