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:
@ -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')
|
||||
|
@ -1,7 +0,0 @@
|
||||
library web_foo;
|
||||
|
||||
import 'package:angular2/platform/browser.dart';
|
||||
|
||||
void main() async {
|
||||
var appRef = await bootstrap(MyComponent);
|
||||
}
|
Reference in New Issue
Block a user