hunk.code_window: var Rx = require('../../dist/cjs/Rx');
   var Observable = Rx.Observable;
   describe('Observable.prototype.delay()', function () {
     it('should delay by 100ms', function (done) {
       var time = Date.now();
       Observable
         .of(42)
         .delay(100)
         .subscribe(function (x) {
           expect(Date.now() - time >= 100).toBe(true);
         }, null, function() {
           expect(Date.now() - time >= 100).toBe(true);
           done();
         });
     });
   });
  
hunk.labels: keep keep keep keep replace replace replace replace replace replace replace replace replace replace replace keep keep
hunk.after_edit:   it('should delay by specified timeframe', function () {
       var source = hot('--a--|');
       var expected =   '-----a--|';
       expectObservable(source.delay(30, rxTestScheduler)).toBe(expected);
  
hunk.file_path: spec/operators/delay-spec.js
hunk.type: replace
file: var builder = require('../specbuilder');
  
  var preset = new builder.Preset();
  var runner = preset.runner;
  
  describe('groupBy comparison', function () {
    var testUrlIdentifier = 'groupBy';
    
    preset.iteration.forEach(function (val) {
      
      it('should be fast in Rx2', function (done) {
        preset.initBrowser(browser, testUrlIdentifier, val);
        var param = preset.sampleParameter('groupBy Rx2', '#rx-2-groupBy', val);
        runner.sample(param).then(done, done.fail);
      });
      
      it('should be fast in RxNext', function (done) {
        preset.initBrowser(browser, testUrlIdentifier , val);
        var param = preset.sampleParameter('groupBy RxNext', '#rx-3-groupBy', val);
        runner.sample(param).then(done, done.fail);
      });
      
    });
  });