File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -59,13 +59,14 @@ module RWC {
59
59
} ) ;
60
60
} ) ;
61
61
62
+ var inputFiles : { unitName : string ; content : string ; } [ ] = [ ] ;
63
+ var otherFiles : { unitName : string ; content : string ; } [ ] = [ ] ;
62
64
var compilerResult : Harness . Compiler . CompilerResult ;
63
65
it ( 'can compile' , ( ) => {
64
66
runWithIOLog ( ioLog , ( ) => {
65
67
harnessCompiler . reset ( ) ;
66
68
67
69
// Load the files
68
- var inputFiles : { unitName : string ; content : string ; } [ ] = [ ] ;
69
70
ts . forEach ( opts . filenames , fileName => {
70
71
inputFiles . push ( getHarnessCompilerInputUnit ( fileName ) ) ;
71
72
} ) ;
@@ -78,7 +79,6 @@ module RWC {
78
79
}
79
80
}
80
81
81
- var otherFiles : { unitName : string ; content : string ; } [ ] = [ ] ;
82
82
ts . forEach ( ioLog . filesRead , fileRead => {
83
83
var resolvedPath = Harness . Path . switchToForwardSlashes ( sys . resolvePath ( fileRead . path ) ) ;
84
84
var inInputList = ts . forEach ( inputFiles , inputFile => inputFile . unitName === resolvedPath ) ;
@@ -144,7 +144,9 @@ module RWC {
144
144
return null ;
145
145
}
146
146
147
- return Harness . Compiler . minimalDiagnosticsToString ( compilerResult . errors ) ;
147
+ return Harness . Compiler . minimalDiagnosticsToString ( compilerResult . errors ) +
148
+ sys . newLine + sys . newLine +
149
+ Harness . Compiler . getErrorBaseline ( inputFiles . concat ( otherFiles ) , compilerResult . errors ) ;
148
150
} , false , baselineOpts ) ;
149
151
} ) ;
150
152
You can’t perform that action at this time.
0 commit comments