| Index: tests/lib/async/stream_controller_test.dart
|
| diff --git a/tests/lib/async/stream_controller_test.dart b/tests/lib/async/stream_controller_test.dart
|
| index 8cfabf5cbc2304a8f3a74b4c5a215310e06ac4ff..9593e965c8c6393242ff9a779ef5f0de567db30e 100644
|
| --- a/tests/lib/async/stream_controller_test.dart
|
| +++ b/tests/lib/async/stream_controller_test.dart
|
| @@ -392,8 +392,22 @@ testExtraMethods() {
|
| Expect.listEquals(expectedEvents.events, actualEvents.events);
|
| }
|
|
|
| +testClosed() {
|
| + for (StreamController c in [new StreamController(),
|
| + new StreamController.broadcast()]) {
|
| + Expect.isFalse(c.isClosed);
|
| + c.add(42);
|
| + Expect.isFalse(c.isClosed);
|
| + c.signalError("bad");
|
| + Expect.isFalse(c.isClosed);
|
| + c.close();
|
| + Expect.isTrue(c.isClosed);
|
| + }
|
| +}
|
| +
|
| main() {
|
| testMultiController();
|
| testSingleController();
|
| testExtraMethods();
|
| + testClosed();
|
| }
|
|
|