refactor(dart/transform): Remove deprecated angular2/bootstrap

BREAKING CHANGE

Remove the deprecated angular2/bootstrap.ts &
angular2/bootstrap_static.ts libraries.

Browser entry points should import angular2/platform/browser which
supplies the `bootstrap` function.

Closes #7650
This commit is contained in:
Tim Blasi
2016-03-18 09:05:21 -07:00
committed by Timothy Blasi
parent 9a1959f77a
commit 26a3390549
8 changed files with 6 additions and 46 deletions

View File

@ -71,17 +71,6 @@ void allTests() {
});
describe('`bootstrap` import and call', () {
// TODO(kegluneq): Remove when we remove angular2/bootstrap.dart
it('deprecated import should be rewritten to `bootstrapStatic`.', () {
final bootstrapCode =
readFile('reflection_remover/deprecated_bootstrap_files/index.dart')
.replaceAll('\r\n', '\n');
var output = new Rewriter(bootstrapCode, codegen, entrypointMatcher,
writeStaticInit: true)
.rewrite(parseCompilationUnit(bootstrapCode));
expect(output).toEqual(bootstrap_expected.code);
});
it('should be rewritten to `bootstrapStatic`.', () {
final bootstrapCode =
readFile('reflection_remover/bootstrap_files/index.dart')

View File

@ -1,7 +0,0 @@
library web_foo;
import 'package:angular2/platform/browser.dart';
void main() async {
var appRef = await bootstrap(MyComponent);
}