Currently, ReactEventListener is a DOM-specific module but it has a generic sounding name that is confusing to contributors (i.e., confusing to me).

Let's rename it to ReactDOMEventListener. This should be pretty easy – just rename the file and update (and re-sort) the imports.

# @philipp-spiess is working on this task.
},
  isCompositeComponentWithType: function(inst, type) {
    if (!ReactTestUtils.isCompositeComponent(inst)) {
      return false;
    }
    var internalInstance = ReactInstanceMap.get(inst);
    var constructor = typeof internalInstance.tag === 'number'
      ? internalInstance.type 
      : internalInstance._currentElement.type; 
    return constructor === type;
  },
  
  isCompositeComponentElement: function(inst) {
    if (!React.isValidElement(inst)) {
      return false;
    }
    
    
    var prototype = inst.type.prototype;
    return (
      typeof prototype.render === 'function' &&
      typeof prototype.setState === 'function'
    );
  },
  
  isCompositeComponentElementWithType: function(inst, type) {
    var internalInstance = ReactInstanceMap.get(inst);
    var constructor = internalInstance._currentElement.type;
    return !!(ReactTestUtils.isCompositeComponentElement(inst) &&
      constructor === type);