#6585

},
      });
      var Child2 = React.createClass({
        render: function() {
          return <div>Child2</div>;
        },
      });
      var Child3 = React.createClass({
        render: function() {
          return <div onclick="1">Child3</div>;
        },
      });
      var Child4 = React.createClass({
        render: function() {
          return <div>Child4</div>;
        },
      });
      ReactDOMServer.renderToString(<Parent />, container);
      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) + 12).toBe(parseInt(currentLine, 10));
    });
  });
});