File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ class CompilerBaselineRunner extends RunnerBase {
9797 program = _program ;
9898 } , function ( settings ) {
9999 harnessCompiler . setCompilerSettings ( tcSettings ) ;
100- } ) ;
100+ } ) ;
101101 } ) ;
102102
103103 beforeEach ( ( ) => {
@@ -252,7 +252,7 @@ class CompilerBaselineRunner extends RunnerBase {
252252 }
253253 } ) ;
254254
255- it ( 'Correct type baselines for ' + fileName , ( ) => {
255+ it ( 'Correct type/symbol baselines for ' + fileName , ( ) => {
256256 if ( fileName . indexOf ( "APISample" ) >= 0 ) {
257257 return ;
258258 }
@@ -289,8 +289,26 @@ class CompilerBaselineRunner extends RunnerBase {
289289
290290 // Produce baselines. The first gives the types for all expressions.
291291 // The second gives symbols for all identifiers.
292- checkBaseLines ( /*isSymbolBaseLine:*/ false ) ;
293- checkBaseLines ( /*isSymbolBaseLine:*/ true ) ;
292+ var e1 : Error , e2 : Error ;
293+ try {
294+ checkBaseLines ( /*isSymbolBaseLine:*/ false ) ;
295+ }
296+ catch ( e ) {
297+ e1 = e ;
298+ }
299+
300+ try {
301+ checkBaseLines ( /*isSymbolBaseLine:*/ true ) ;
302+ }
303+ catch ( e ) {
304+ e2 = e ;
305+ }
306+
307+ if ( e1 || e2 ) {
308+ throw e1 || e2 ;
309+ }
310+
311+ return ;
294312
295313 function checkBaseLines ( isSymbolBaseLine : boolean ) {
296314 let fullBaseLine = generateBaseLine ( fullResults , isSymbolBaseLine ) ;
You can’t perform that action at this time.
0 commit comments