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

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

Issue 257423008: Update all Angular libs (run update_all.sh). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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/log.dart ('k') | third_party/pkg/angular/lib/mock/module.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/mock_window.dart
diff --git a/third_party/pkg/angular/lib/mock/mock_window.dart b/third_party/pkg/angular/lib/mock/mock_window.dart
index 7e7c4e928578716a43a13a0049d8b2752e3a5496..1be4f4a8089a587677ed874616205163a6c1becc 100644
--- a/third_party/pkg/angular/lib/mock/mock_window.dart
+++ b/third_party/pkg/angular/lib/mock/mock_window.dart
@@ -10,11 +10,17 @@ class MockWindow extends Mock implements Window {
final onHashChangeController = new dart_async.StreamController<Event>();
final onClickController = new dart_async.StreamController<MouseEvent>();
-
dart_async.Stream<PopStateEvent> get onPopState => onPopStateController.stream;
dart_async.Stream<Event> get onHashChange => onHashChangeController.stream;
dart_async.Stream<Event> get onClick => onClickController.stream;
-
+ dart_async.Future<num> get animationFrame => animationFrameCompleter.future;
+
+ executeAnimationFrame([num time=0.0]) {
+ var last = animationFrameCompleter;
+ animationFrameCompleter = new dart_async.Completer<num>();
+ last.complete(time);
+ }
+
noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
}
« no previous file with comments | « third_party/pkg/angular/lib/mock/log.dart ('k') | third_party/pkg/angular/lib/mock/module.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698