| Index: third_party/pkg/angular/test/mock/test_bed_spec.dart
|
| diff --git a/third_party/pkg/angular/test/mock/test_bed_spec.dart b/third_party/pkg/angular/test/mock/test_bed_spec.dart
|
| deleted file mode 100644
|
| index 19380a111ff3ddd5e04ce69a030bf5c3560429b7..0000000000000000000000000000000000000000
|
| --- a/third_party/pkg/angular/test/mock/test_bed_spec.dart
|
| +++ /dev/null
|
| @@ -1,45 +0,0 @@
|
| -library angular.mock.test_bed_spec;
|
| -
|
| -import '../_specs.dart';
|
| -
|
| -main() =>
|
| -describe('test bed', () {
|
| - TestBed _;
|
| - Compiler $compile;
|
| - Injector injector;
|
| - Scope $rootScope;
|
| -
|
| - beforeEach(module((Module module) {
|
| - module..type(MyTestBedDirective);
|
| - return (TestBed tb) => _ = tb;
|
| - }));
|
| -
|
| - it('should allow for a scope-based compile', () {
|
| -
|
| - inject((Scope scope) {
|
| - Scope childScope = scope.createChild({});
|
| -
|
| - var element = $('<div my-directive probe="i"></div>');
|
| - _.compile(element, scope: childScope);
|
| -
|
| - Probe probe = _.rootScope.context['i'];
|
| - var directiveInst = probe.directive(MyTestBedDirective);
|
| -
|
| - childScope.destroy();
|
| -
|
| - expect(directiveInst.destroyed).toBe(true);
|
| - });
|
| - });
|
| -
|
| -});
|
| -
|
| -@NgDirective(selector: '[my-directive]')
|
| -class MyTestBedDirective {
|
| - bool destroyed = false;
|
| -
|
| - MyTestBedDirective(Scope scope) {
|
| - scope.on(ScopeEvent.DESTROY).listen((_) {
|
| - destroyed = true;
|
| - });
|
| - }
|
| -}
|
|
|