mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-15 03:23:08 -06:00
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);
|
||||
}
|
||||
|
||||
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');
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user