 {
      callCount2++;
    };
    var callback3 = function() {
      callCount3++;
    };
    microTask.run(callback1);
    microTask.run(callback2);
    microTask.run(callback3);
    setTimeout(function() {
      assert.equal(callCount1, 1);
      assert.equal(callCount2, 1);
      assert.equal(callCount3, 1);
      done();
    });
  });

  test('Errors are thrown but the queue is continued', function(done) {
    captureEnabled = true;
    var callCount1 = 0;
    var callCount2 = 0;
    var callCount3 = 0;