.toValue((filename, content) => {
   loggedFile = {'filename': filename, 'content': content};
   return PromiseWrapper.resolve(null);
 })
 gc(): Promise<any> {
   this._commandLog.push(['gc']);
   return PromiseWrapper.resolve(null);
 }
Example #3
0
 private _echo(val: string) {
   return PromiseWrapper.wrap(() => { return val; });
 }
 timeBegin(name): Promise<any> {
   this._commandLog.push(['timeBegin', name]);
   return PromiseWrapper.resolve(null);
 }
 timeEnd(name, restartName): Promise<any> {
   this._commandLog.push(['timeEnd', name, restartName]);
   return PromiseWrapper.resolve(null);
 }
Example #6
0
 reportMeasureValues(values: MeasureValues): Promise<any[]> {
   return PromiseWrapper.all(
       this._reporters.map(reporter => reporter.reportMeasureValues(values)));
 }
Example #7
0
 reportSample(completeSample: MeasureValues[], validSample: MeasureValues[]): Promise<any[]> {
   return PromiseWrapper.all(
       this._reporters.map(reporter => reporter.reportSample(completeSample, validSample)));
 }
 it('should throw if there is no match', inject([AsyncTestCompleter], (async) => {
      PromiseWrapper.catchError(createExtension(['m1'], {'browser': 'm2'}), (err) => {
        expect(isPresent(err)).toBe(true);
        async.done();
      });
    }));
Example #9
0
 reportMeasureValues(measureValues: MeasureValues): Promise<any> {
   return PromiseWrapper.resolve(null);
 }
Example #10
0
 /**
  * Starts measuring
  */
 beginMeasure(): Promise<any> {
   return PromiseWrapper.all(this._metrics.map(metric => metric.beginMeasure()));
 }