| OLD | NEW |
| (Empty) | |
| 1 part of angular.mock; |
| 2 |
| 3 @proxy |
| 4 class MockWindow extends Mock implements Window { |
| 5 MockHistory history = new MockHistory(); |
| 6 MockLocation location = new MockLocation(); |
| 7 MockDocument document = new MockDocument(); |
| 8 |
| 9 dart_async.StreamController<PopStateEvent> onPopStateController = |
| 10 new dart_async.StreamController<PopStateEvent>(); |
| 11 dart_async.StreamController<Event> onHashChangeController = |
| 12 new dart_async.StreamController<Event>(); |
| 13 dart_async.StreamController<MouseEvent> onClickController = |
| 14 new dart_async.StreamController<MouseEvent>(); |
| 15 |
| 16 |
| 17 dart_async.Stream<PopStateEvent> get onPopState => onPopStateController.stream
; |
| 18 dart_async.Stream<Event> get onHashChange => onHashChangeController.stream; |
| 19 dart_async.Stream<Event> get onClick => onClickController.stream; |
| 20 |
| 21 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); |
| 22 } |
| 23 |
| 24 @proxy |
| 25 class MockHistory extends Mock implements History { |
| 26 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); |
| 27 } |
| 28 |
| 29 @proxy |
| 30 class MockLocation extends Mock implements Location { |
| 31 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); |
| 32 } |
| 33 |
| 34 @proxy |
| 35 class MockDocument extends Mock implements HtmlDocument { |
| 36 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); |
| 37 } |
| OLD | NEW |