8075240: Output of some tests contains platform specific line break

Reviewed-by: sundar
This commit is contained in:
Sergey Lugovoy 2015-03-25 14:39:39 +03:00
parent de784d82f1
commit 540bb21731
3 changed files with 333 additions and 307 deletions

View File

@ -97,7 +97,7 @@ function processFiles(subdir) {
var parser = new Parser();
var tree = parser.parse(subdir + "/" + file.name, script,
function(diagnostic) {
print(JSON.stringify(parser.convert(diagnostic), null, 2));
print(JSON.stringify(parser.convert(diagnostic), null, 2).replace(/\\r/g, ''));
print(",");
});

File diff suppressed because it is too large Load Diff

View File

@ -78,5 +78,5 @@ function parseDiagnostic (code, args) {
var tree = parser.create(args).parse("test.js", code, function (message) {
messages.push(convert(message))
})
print(JSON.stringify(messages, null, 2))
print(JSON.stringify(messages, null, 2).replace(/\\r/g, ''))
}