OLD | NEW |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 import 'dart:async'; | 5 import 'dart:async'; |
6 | 6 |
7 import "package:async/async.dart"; | |
8 import "package:async/src/typed/stream_subscription.dart"; | 7 import "package:async/src/typed/stream_subscription.dart"; |
9 import "package:test/test.dart"; | 8 import "package:test/test.dart"; |
10 | 9 |
11 import '../utils.dart'; | 10 import '../utils.dart'; |
12 | 11 |
13 void main() { | 12 void main() { |
14 group("with valid types, forwards", () { | 13 group("with valid types, forwards", () { |
15 var controller; | 14 var controller; |
16 var wrapper; | 15 var wrapper; |
17 var isCanceled; | 16 var isCanceled; |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 }); | 134 }); |
136 | 135 |
137 test("asFuture()", () { | 136 test("asFuture()", () { |
138 expect(wrapper.asFuture(12), completion(equals(12))); | 137 expect(wrapper.asFuture(12), completion(equals(12))); |
139 controller.add("foo"); | 138 controller.add("foo"); |
140 controller.close(); | 139 controller.close(); |
141 }); | 140 }); |
142 }); | 141 }); |
143 }); | 142 }); |
144 } | 143 } |
OLD | NEW |