OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 library async.test.stream_group_test; | |
6 | |
7 import 'dart:async'; | 5 import 'dart:async'; |
8 | 6 |
9 import 'package:async/async.dart'; | 7 import 'package:async/async.dart'; |
10 import 'package:test/test.dart'; | 8 import 'package:test/test.dart'; |
11 | 9 |
12 main() { | 10 main() { |
13 group("single-subscription", () { | 11 group("single-subscription", () { |
14 var streamGroup; | 12 var streamGroup; |
15 setUp(() { | 13 setUp(() { |
16 streamGroup = new StreamGroup<String>(); | 14 streamGroup = new StreamGroup<String>(); |
(...skipping 697 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
714 controller.close(); | 712 controller.close(); |
715 | 713 |
716 await streamGroup.close(); | 714 await streamGroup.close(); |
717 expect(events, equals(["one", "two", "three", "four", "five", "six"])); | 715 expect(events, equals(["one", "two", "three", "four", "five", "six"])); |
718 }); | 716 }); |
719 }); | 717 }); |
720 } | 718 } |
721 | 719 |
722 /// Wait for all microtasks to complete. | 720 /// Wait for all microtasks to complete. |
723 Future flushMicrotasks() => new Future.delayed(Duration.ZERO); | 721 Future flushMicrotasks() => new Future.delayed(Duration.ZERO); |
OLD | NEW |