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

Unified Diff: third_party/pkg/angular/test/mock/test_bed_spec.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
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;
- });
- }
-}
« no previous file with comments | « third_party/pkg/angular/test/mock/http_backend_spec.dart ('k') | third_party/pkg/angular/test/mock/zone_spec.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698