Emit declarations and sourcemaps in rwc test runner

This commit is contained in:
Sheetal Nandi
2014-08-19 20:18:10 -07:00
parent 0636a067fc
commit b53e989f88
2 changed files with 6 additions and 2 deletions

View File

@@ -600,6 +600,12 @@ module Harness {
result.files.forEach(file => {
ioHost.writeFile(file.fileName, file.code, false);
});
result.declFilesCode.forEach(file => {
ioHost.writeFile(file.fileName, file.code, false);
});
result.sourceMaps.forEach(file => {
ioHost.writeFile(file.fileName, file.code, false);
});
}, () => { }, this.compileOptions);
}

View File

@@ -189,14 +189,12 @@ module RWC {
}, false, baselineOpts);
});
/*
it('has the expected source maps', () => {
Harness.Baseline.runBaseline('has the expected source maps', baseName + '.map', () => {
var result = collateOutputs(emitterIOHost, fn => fn.substr(fn.length - '.map'.length) === '.map');
return result.length > 0 ? result : null;
}, false, baselineOpts);
});
*/
it('has the expected errors', () => {
Harness.Baseline.runBaseline('has the expected errors', baseName + '.errors.txt', () => {