mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-08 22:04:29 -05:00
Make the harness report a failure if the line endings differ from the baselines
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user