B2G/gecko/testing/peptest/peptest/extension/resource/pep/api.js
/**
 * This is the API exposed to tests
 * Any properties of this object will be injected into test scope
 * under the 'pep' namespace.
 */
This is the API exposed to tests
Any properties of this object will be injected into test scope
under the 'pep' namespace.
This is the API exposed to tests Any properties of this object will be injected into test scope under the ' pep ' namespace .
function PepAPI(test, options) {
  this.test = test;
  this.options = options;
  this.log = new Log(this.test.name);
  this.resultHandler = new results.ResultHandler(this.test.name);
  this.file = Components.classes["@mozilla.org/file/local;1"]
                        .createInstance(Components.interfaces.nsILocalFile);
  this.file.initWithPath(this.test.path);
}
function PepAPI ( test , options ) { this . test = test ; this . options = options ; this . log = new Log ( this . test . name ) ; this . resultHandler = new results . ResultHandler ( this . test . name ) ; this . file = Components . classes [ "@mozilla.org/file/local;1" ] . createInstance ( Components . interfaces . nsILocalFile ) ; this . file . initWithPath ( this . test . path ) ; }
This is the API exposed to tests
 Any properties of this object will be injected into test scope
 under the 'pep' namespace.
This is the API exposed to tests Any properties of this object will be injected into test scope under the ' pep ' namespace .