Chromium Code Reviews| 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 3f2a48b1a18041ab5fd5b8fdf2224fc4d36379d3..8f1d26aa0da74db3b6a638ce0992892a4daee67a 100644 |
| --- a/tests/lib/async/stream_controller_test.dart |
| +++ b/tests/lib/async/stream_controller_test.dart |
| @@ -416,9 +416,30 @@ void testClosed() { |
| Expect.isTrue(c.isClosed); |
| } |
| +void testStreamEquals() { |
| + StreamController c; |
| + c = new StreamController(sync: false); |
| + Expect.equals(c.stream, c.stream); |
| + c = new StreamController(sync: true); |
| + Expect.equals(c.stream, c.stream); |
| + c = new StreamController(sync: false, onListen:(){}); |
| + Expect.equals(c.stream, c.stream); |
| + c = new StreamController(sync: true, onListen:(){}); |
| + Expect.equals(c.stream, c.stream); |
| + c = new StreamController.broadcast(sync: false); |
| + Expect.equals(c.stream, c.stream); |
| + c = new StreamController.broadcast(sync: true); |
| + Expect.equals(c.stream, c.stream); |
| + c = new StreamController.broadcast(sync: false, onListen:(){}); |
| + Expect.equals(c.stream, c.stream); |
| + c = new StreamController.broadcast(sync: true, onListen:(){}); |
|
floitsch
2013/07/19 11:47:40
maybe add test where it doesn't return true?
|
| + Expect.equals(c.stream, c.stream); |
| +} |
| + |
| main() { |
| testMultiController(); |
| testSingleController(); |
| testExtraMethods(); |
| testClosed(); |
| + testStreamEquals(); |
| } |