Make the harness report a failure if the line endings differ from the baselines

This commit is contained in:
Jason Freeman 2015-05-04 17:29:57 -07:00
parent 15f4b58d6c
commit d3a2c2a042

View file

@ -1702,9 +1702,9 @@ module Harness {
expected = IO.readFile(refFileName);
}
var lineEndingSensitive = opts && opts.LineEndingSensitive;
var lineEndingInsensitive = opts && opts.LineEndingSensitive === false; // default is true
if (!lineEndingSensitive) {
if (lineEndingInsensitive) {
expected = expected.replace(/\r\n?/g, '\n');
actual = actual.replace(/\r\n?/g, '\n');
}