Make the harness report a failure if the line endings differ from the baselines
This commit is contained in:
parent
15f4b58d6c
commit
d3a2c2a042
|
@ -1702,9 +1702,9 @@ module Harness {
|
||||||
expected = IO.readFile(refFileName);
|
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');
|
expected = expected.replace(/\r\n?/g, '\n');
|
||||||
actual = actual.replace(/\r\n?/g, '\n');
|
actual = actual.replace(/\r\n?/g, '\n');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue