  if (captureEnabled) {
    capturedErrors.push(e);
    e.stopImmediatePropagation();
    e.preventDefault();
    return true;
  }
});

suite('Queueing micro tasks', function() {

  test('The queued function runs.', function(done) {
    var callCount = 0;
    var callback = function() {
      callCount++;
    };

    microTask.run(callback);
    setTimeout(function() {
      assert.equal(callCount, 1);
      done();
    });
  });

  test('Functions queued multiple times are run multiple times.',
    functio