refactor(compiler): drop old codegen tests that run inside of test.sh

These tests were hard to maintain and only yielded little value,
now that we have the full integration with TypeScript.
This commit is contained in:
Tobias Bosch
2016-11-23 14:47:05 -08:00
committed by vsavkin
parent bc69c74be0
commit 2452cd14e0
7 changed files with 18 additions and 346 deletions

View File

@ -9,19 +9,22 @@
import {CompileIdentifierMetadata} from '@angular/compiler/src/compile_metadata';
import {JavaScriptEmitter} from '@angular/compiler/src/output/js_emitter';
import * as o from '@angular/compiler/src/output/output_ast';
import {beforeEach, describe, expect, it} from '@angular/core/testing/testing_internal';
import {SimpleJsImportGenerator} from './output_emitter_util';
import {ImportResolver} from '@angular/compiler/src/output/path_util';
const someModuleUrl = 'somePackage/somePath';
const anotherModuleUrl = 'somePackage/someOtherPath';
const sameModuleIdentifier =
new CompileIdentifierMetadata({name: 'someLocalId', moduleUrl: someModuleUrl});
const externalModuleIdentifier =
new CompileIdentifierMetadata({name: 'someExternalId', moduleUrl: anotherModuleUrl});
class SimpleJsImportGenerator implements ImportResolver {
fileNameToModuleName(importedUrlStr: string, moduleUrlStr: string): string {
return importedUrlStr;
}
}
export function main() {
// Note supported features of our OutputAstin JavaScript / ES5:
// - types