Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(556)

Unified Diff: tests/lib/async/stream_controller_test.dart

Issue 1272593002: Update Changelog. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/async/stream.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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; }
« no previous file with comments | « sdk/lib/async/stream.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698