#6585

spyOn(console, 'error');
      ReactDOMServer.renderToString(
        <div className="foo1">
        <div class="foo2"/>
        <div onClick="foo3"/>
        <div onclick="foo4"/>
        <div className="foo5"/>
        <div className="foo6"/>
        </div>
      );
      expect(console.error.argsForCall.length).toBe(2);
      var matches = console.error.argsForCall[0][0].match(/.*className.*\(.*:(\d+)\)/);
      var previousLine = matches[1];
      matches = console.error.argsForCall[1][0].match(/.*onClick.*\(.*:(\d+)\)/);
      var currentLine = matches[1];
      
      
      expect(parseInt(previousLine, 10) + 2).toBe(parseInt(currentLine, 10));
    });
    it('gives source code refs for unknown prop warning for exact elements in composition ', function() {
      spyOn(console, 'error');
      var container = document.createElement('div');
      var Parent = React.createClass({
        render: function() {
          return <div><Child1 /><Child2 /><Child3 /><Child4 /></div>;
        },
      });
      var Child1 = React.createClass({
        render: function() {
          return <div class="paladin">Child1</div>;