Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(50)

Unified Diff: third_party/pkg/angular/lib/mock/probe.dart

Issue 1058283006: Update pubspecs and dependencies to get pkgbuild tests working. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/pkg/angular/lib/mock/module.dart ('k') | third_party/pkg/angular/lib/mock/test_bed.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
-}
-
« no previous file with comments | « third_party/pkg/angular/lib/mock/module.dart ('k') | third_party/pkg/angular/lib/mock/test_bed.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698