Accept baselines

This commit is contained in:
Mohamed Hegazy
2017-02-13 22:14:05 -08:00
parent abae1bd136
commit 6613530935
9 changed files with 1007 additions and 45 deletions

View File

@@ -12,7 +12,7 @@ namespace ts {
it(`Correct output for ${outputFileName}`, () => {
Harness.Baseline.runBaseline(outputFileName, () => {
if (initResult) {
return JSON.stringify(initResult, undefined, 4);
return initResult;
}
else {
// This can happen if compiler recieve invalid compiler-options