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

Unified Diff: third_party/pkg/angular/lib/mock/module.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/mock_window.dart ('k') | third_party/pkg/angular/lib/mock/probe.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/module.dart
diff --git a/third_party/pkg/angular/lib/mock/module.dart b/third_party/pkg/angular/lib/mock/module.dart
deleted file mode 100644
index e98a1399650417c21663e6304133031a2b24ddc6..0000000000000000000000000000000000000000
--- a/third_party/pkg/angular/lib/mock/module.dart
+++ /dev/null
@@ -1,51 +0,0 @@
-library angular.mock;
-
-import 'dart:async' as dart_async;
-import 'dart:collection' show ListBase;
-import 'dart:convert' show JSON;
-import 'dart:html';
-import 'dart:js' as js;
-import 'package:angular/angular.dart';
-import 'package:angular/utils.dart' as utils;
-import 'package:di/di.dart';
-import 'package:di/dynamic_injector.dart';
-import 'package:mock/mock.dart';
-
-export 'zone.dart';
-
-part 'debug.dart';
-part 'exception_handler.dart';
-part 'http_backend.dart';
-part 'log.dart';
-part 'probe.dart';
-part 'test_bed.dart';
-part 'mock_window.dart';
-part 'test_injection.dart';
-
-/**
- * Use in addition to [AngularModule] in your tests.
- *
- * [AngularMockModule] provides:
- *
- * - [TestBed]
- * - [Probe]
- * - [MockHttpBackend] instead of [HttpBackend]
- * - [Logger]
- * - [RethrowExceptionHandler] instead of [ExceptionHandler]
- * - [NgZone] which displays errors to console;
- */
-class AngularMockModule extends Module {
- AngularMockModule() {
- type(ExceptionHandler, implementedBy: RethrowExceptionHandler);
- type(TestBed);
- type(Probe);
- type(Logger);
- type(MockHttpBackend);
- factory(HttpBackend, (Injector i) => i.get(MockHttpBackend));
- factory(NgZone, (_) {
- return new NgZone()
- ..onError = (e, s, LongStackTrace ls) => dump('EXCEPTION: $e\n$s\n$ls');
- });
- type(Window, implementedBy: MockWindow);
- }
-}
« no previous file with comments | « third_party/pkg/angular/lib/mock/mock_window.dart ('k') | third_party/pkg/angular/lib/mock/probe.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698