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 c03dc4a721cb69ddac63c08521cd9749c2a3c352..c9ef02136a83b6d8fef3240e042485290fb64991 100644 |
--- a/tests/lib/async/stream_controller_test.dart |
+++ b/tests/lib/async/stream_controller_test.dart |
@@ -481,17 +481,17 @@ void testStreamEquals() { |
Expect.equals(c.stream, c.stream); |
c = new StreamController(sync: true); |
Expect.equals(c.stream, c.stream); |
- c = new StreamController(sync: false, onListen:(){}); |
+ c = new StreamController(sync: false, onListen: () {}); |
Expect.equals(c.stream, c.stream); |
- c = new StreamController(sync: true, onListen:(){}); |
+ 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:(){}); |
+ c = new StreamController.broadcast(sync: false, onListen: () {}); |
Expect.equals(c.stream, c.stream); |
- c = new StreamController.broadcast(sync: true, onListen:(){}); |
+ c = new StreamController.broadcast(sync: true, onListen: () {}); |
Expect.equals(c.stream, c.stream); |
} |
@@ -811,9 +811,9 @@ void testBroadcastSettingCallbacks() { |
var stream = controller.stream; |
var state = initial; |
- Expect.throws(() { controller.onPause = (){}; }, |
+ Expect.throws(() { controller.onPause = () {}; }, |
(e) => e is UnsupportedError); |
- Expect.throws(() { controller.onResume = (){}; }, |
+ Expect.throws(() { controller.onResume = () {}; }, |
(e) => e is UnsupportedError); |
controller..onListen = () { state = running; } |