44// Test case is json of below type in tests/cases/project/
55interface ProjectRunnerTestCase {
66 scenario : string ;
7- projectRoot : string ; // project where it lives - this also is the current dictory when compiling
7+ projectRoot : string ; // project where it lives - this also is the current directory when compiling
88 inputFiles : string [ ] ; // list of input files to be given to program
99 out ?: string ; // --out
1010 outDir ?: string ; // --outDir
@@ -22,7 +22,7 @@ interface ProjectRunnerTestCase {
2222interface ProjectRunnerTestCaseResolutionInfo extends ProjectRunnerTestCase {
2323 // Apart from actual test case the results of the resolution
2424 resolvedInputFiles : string [ ] ; // List of files that were asked to read by compiler
25- emittedFiles : string [ ] ; // List of files that wre emitted by the compiler
25+ emittedFiles : string [ ] ; // List of files that were emitted by the compiler
2626}
2727
2828interface BatchCompileProjectTestCaseEmittedFile extends Harness . Compiler . GeneratedFile {
@@ -69,7 +69,7 @@ class ProjectRunner extends RunnerBase {
6969 testCase = < ProjectRunnerTestCase > JSON . parse ( testFileText ) ;
7070 }
7171 catch ( e ) {
72- assert ( false , "Testcase: " + testCaseFileName + " doesnt not contain valid json format: " + e . message ) ;
72+ assert ( false , "Testcase: " + testCaseFileName + " does not contain valid json format: " + e . message ) ;
7373 }
7474 var testCaseJustName = testCaseFileName . replace ( / ^ .* [ \\ \/ ] / , '' ) . replace ( / \. j s o n / , "" ) ;
7575
@@ -87,7 +87,7 @@ class ProjectRunner extends RunnerBase {
8787 }
8888
8989 // When test case output goes to tests/baselines/local/projectOutput/testCaseName/moduleKind/
90- // We have these two separate locations because when compairing baselines the baseline verifier will delete the existing file
90+ // We have these two separate locations because when comparing baselines the baseline verifier will delete the existing file
9191 // so even if it was created by compiler in that location, the file will be deleted by verified before we can read it
9292 // so lets keep these two locations separate
9393 function getProjectOutputFolder ( filename : string , moduleKind : ts . ModuleKind ) {
@@ -228,7 +228,7 @@ class ProjectRunner extends RunnerBase {
228228
229229 var diskRelativeName = ts . getRelativePathToDirectoryOrUrl ( testCase . projectRoot , diskFileName , getCurrentDirectory ( ) , false ) ;
230230 if ( ts . isRootedDiskPath ( diskRelativeName ) || diskRelativeName . substr ( 0 , 3 ) === "../" ) {
231- // If the generated output file recides in the parent folder or is rooted path,
231+ // If the generated output file resides in the parent folder or is rooted path,
232232 // we need to instead create files that can live in the project reference folder
233233 // but make sure extension of these files matches with the filename the compiler asked to write
234234 diskRelativeName = "diskFile" + nonSubfolderDiskFiles ++ +
@@ -299,13 +299,11 @@ class ProjectRunner extends RunnerBase {
299299 return { unitName : sourceFile . filename , content : sourceFile . text } ;
300300 } ) ;
301301 var diagnostics = ts . map ( compilerResult . errors , error => Harness . Compiler . getMinimalDiagnostic ( error ) ) ;
302- var errors = Harness . Compiler . minimalDiagnosticsToString ( diagnostics ) ;
303- errors += sys . newLine + sys . newLine + Harness . Compiler . getErrorBaseline ( inputFiles , diagnostics ) ;
304302
305- return errors ;
303+ return Harness . Compiler . getErrorBaseline ( inputFiles , diagnostics ) ;
306304 }
307305
308- describe ( 'Compiling project for ' + testCase . scenario + ': testcase ' + testCaseFileName , ( ) => {
306+ describe ( 'Compiling project for ' + testCase . scenario + ': testcase ' + testCaseFileName , ( ) => {
309307 function verifyCompilerResults ( compilerResult : BatchCompileProjectTestCaseResult ) {
310308 function getCompilerResolutionInfo ( ) {
311309 var resolutionInfo : ProjectRunnerTestCaseResolutionInfo = {
0 commit comments