Index: third_party/pkg/angular/lib/mock/probe.dart |
diff --git a/third_party/pkg/angular/lib/mock/probe.dart b/third_party/pkg/angular/lib/mock/probe.dart |
deleted file mode 100644 |
index 678e3cfcce058ebc111f669e87c1599355770300..0000000000000000000000000000000000000000 |
--- a/third_party/pkg/angular/lib/mock/probe.dart |
+++ /dev/null |
@@ -1,32 +0,0 @@ |
-part of angular.mock; |
- |
-/* |
- * Use Probe directive to capture the Scope, Injector and Element from any DOM |
- * location into root-scope. This is useful for testing to get a hold of |
- * any directive. |
- * |
- * <div some-directive probe="myProbe">..</div> |
- * |
- * rootScope.myProbe.directive(SomeAttrDirective); |
- */ |
-@NgDirective(selector: '[probe]') |
-class Probe implements NgDetachAware { |
- final Scope scope; |
- final Injector injector; |
- final Element element; |
- final NodeAttrs _attrs; |
- |
- Probe(this.scope, this.injector, this.element, this._attrs) { |
- scope.rootScope.context[_attrs['probe']] = this; |
- } |
- |
- void detach() { |
- scope.rootScope.context[_attrs['probe']] = null; |
- } |
- |
- /** |
- * Retrieve a Directive at the current element. |
- */ |
- directive(Type type) => injector.get(type); |
-} |
- |