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

Unified Diff: third_party/pkg/angular/test/core_dom/http_spec.dart

Issue 176943008: Update the Angular/DI tests to latest from github. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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/core_dom/http_spec.dart
diff --git a/third_party/pkg/angular/test/core_dom/http_spec.dart b/third_party/pkg/angular/test/core_dom/http_spec.dart
index 7812d5d37017537a84e4c6f7b3e2182054bfada7..bf26cf7c57d505fba9ca5a2d9cd2afd0728841c4 100644
--- a/third_party/pkg/angular/test/core_dom/http_spec.dart
+++ b/third_party/pkg/angular/test/core_dom/http_spec.dart
@@ -51,7 +51,7 @@ main() => describe('http', () {
}));
afterEach(inject((ExceptionHandler eh, Scope scope) {
- scope.$digest();
+ scope.apply();
backend.verifyNoOutstandingRequest();
(eh as LoggingExceptionHandler).assertEmpty();
}));
@@ -826,7 +826,7 @@ main() => describe('http', () {
callback();
});
- //$rootScope.$apply(() {
+ //$rootScope.apply(() {
canceler.resolve();
//});
@@ -1321,10 +1321,11 @@ main() => describe('http', () {
});
class FakeFile implements File {
- final DateTime lastModifiedDate = null;
- final String name = null;
- final String relativePath = null;
- final int size = 0;
- final String type = null;
+ DateTime get lastModifiedDate => null;
+ String get name => null;
+ String get relativePath => null;
+ int get size => 0;
+ String get type => null;
Blob slice([int start, int end, String contentType]) => null;
+ int get lastModified => new DateTime.now().millisecondsSinceEpoch;
}

Powered by Google App Engine
This is Rietveld 408576698