@@ -39,8 +39,6 @@ namespace RWC {
39
39
const baseName = ts . getBaseFileName ( jsonPath ) ;
40
40
let currentDirectory : string ;
41
41
let useCustomLibraryFile : boolean ;
42
- let skipTypeBaselines = false ;
43
- const typeSizeLimit = 10000000 ;
44
42
after ( ( ) => {
45
43
// Mocha holds onto the closure environment of the describe callback even after the test is done.
46
44
// Therefore we have to clean out large objects after the test is done.
@@ -54,7 +52,6 @@ namespace RWC {
54
52
// or to use lib.d.ts inside the json object. If the flag is true, use the lib.d.ts inside json file
55
53
// otherwise use the lib.d.ts from built/local
56
54
useCustomLibraryFile = undefined ;
57
- skipTypeBaselines = false ;
58
55
} ) ;
59
56
60
57
it ( "can compile" , function ( this : Mocha . ITestCallbackContext ) {
@@ -64,7 +61,6 @@ namespace RWC {
64
61
const ioLog : IOLog = Playback . newStyleLogIntoOldStyleLog ( JSON . parse ( Harness . IO . readFile ( `internal/cases/rwc/${ jsonPath } /test.json` ) ) , Harness . IO , `internal/cases/rwc/${ baseName } ` ) ;
65
62
currentDirectory = ioLog . currentDirectory ;
66
63
useCustomLibraryFile = ioLog . useCustomLibraryFile ;
67
- skipTypeBaselines = ioLog . filesRead . reduce ( ( acc , elem ) => ( elem && elem . result && elem . result . contents ) ? acc + elem . result . contents . length : acc , 0 ) > typeSizeLimit ;
68
64
runWithIOLog ( ioLog , ( ) => {
69
65
opts = ts . parseCommandLine ( ioLog . arguments , fileName => Harness . IO . readFile ( fileName ) ) ;
70
66
assert . equal ( opts . errors . length , 0 ) ;
@@ -199,14 +195,6 @@ namespace RWC {
199
195
} , baselineOpts , [ ".map" ] ) ;
200
196
} ) ;
201
197
202
- /*it("has correct source map record", () => {
203
- if (compilerOptions.sourceMap) {
204
- Harness.Baseline.runBaseline(baseName + ".sourcemap.txt", () => {
205
- return compilerResult.getSourceMapRecord();
206
- }, baselineOpts);
207
- }
208
- });*/
209
-
210
198
it ( "has the expected errors" , ( ) => {
211
199
Harness . Baseline . runMultifileBaseline ( baseName , ".errors.txt" , ( ) => {
212
200
if ( compilerResult . errors . length === 0 ) {
@@ -219,14 +207,6 @@ namespace RWC {
219
207
} , baselineOpts ) ;
220
208
} ) ;
221
209
222
- it ( "has the expected types" , ( ) => {
223
- // We don't need to pass the extension here because "doTypeAndSymbolBaseline" will append appropriate extension of ".types" or ".symbols"
224
- Harness . Compiler . doTypeAndSymbolBaseline ( baseName , compilerResult . program , inputFiles
225
- . concat ( otherFiles )
226
- . filter ( file => ! ! compilerResult . program . getSourceFile ( file . unitName ) )
227
- . filter ( e => ! Harness . isDefaultLibraryFile ( e . unitName ) ) , baselineOpts , /*multifile*/ true , skipTypeBaselines , /*skipSymbolbaselines*/ true ) ;
228
- } ) ;
229
-
230
210
// Ideally, a generated declaration file will have no errors. But we allow generated
231
211
// declaration file errors as part of the baseline.
232
212
it ( "has the expected errors in generated declaration files" , ( ) => {
0 commit comments