Update test baselines

This commit is contained in:
Sheetal Nandi
2019-02-04 13:51:19 -08:00
parent 16914cc940
commit a0a4e6b0c2
5 changed files with 104 additions and 85 deletions

View File

@@ -2868,6 +2868,15 @@ namespace ts {
declarationMapPath: string | undefined,
buildInfoPath: string | undefined
): InputFiles;
export function createInputFiles(
javascriptText: string,
declarationText: string,
javascriptMapPath: string | undefined,
javascriptMapText: string | undefined,
declarationMapPath: string | undefined,
declarationMapText: string | undefined
): InputFiles;
/*@internal*/
export function createInputFiles(
javascriptText: string,
declarationText: string,

View File

@@ -2838,7 +2838,7 @@ namespace ts {
export interface UnparsedSectionText extends UnparsedSection {
kind: SyntaxKind.UnparsedSectionText;
parent: UnparsedSource;
section: BundleFileSection;
/*@internal*/ section: BundleFileSection;
}
export interface JsonSourceFile extends SourceFile {

View File

@@ -348,9 +348,9 @@ function myFunc() { return 10; }`);
// TODO:: local change does not build logic.js because builder doesnt find any changes in input files to generate output
// Make local change to function bar
verifyChangeInCore(`${coreIndex.content}
function myFunc() { return 100; }`);
function myFunc() { return 100; }`, /*isLocal*/ true);
function verifyChangeInCore(content: string) {
function verifyChangeInCore(content: string, isLocal?: boolean) {
const outputFileStamps = getOutputFileStamps();
host.writeFile(coreIndex.path, content);
@@ -363,12 +363,14 @@ function myFunc() { return 100; }`);
emptyArray
);
host.checkTimeoutQueueLengthAndRun(1); // Builds logic
const changedLogicOutput = getOutputFileNames(SubProject.logic, "index");
const changedLogic = getOutputFileStamps();
verifyChangedFiles(
changedLogic,
changedCore,
getOutputFileNames(SubProject.logic, "index"),
emptyArray
// Only js file is written and d.ts is modified timestamp if its local change
isLocal ? [changedLogicOutput[0]] : getOutputFileNames(SubProject.logic, "index"),
isLocal ? [changedLogicOutput[1]] : emptyArray
);
host.checkTimeoutQueueLength(0);
checkOutputErrorsIncremental(host, emptyArray);