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

Unified Diff: sdk/lib/_internal/pub/test/error_group_test.dart

Issue 16125005: Make new StreamController be async by default. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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
Index: sdk/lib/_internal/pub/test/error_group_test.dart
diff --git a/sdk/lib/_internal/pub/test/error_group_test.dart b/sdk/lib/_internal/pub/test/error_group_test.dart
index d22f12cf63ee7421178f2a6893610bdea7d8db79..cedb338491fe6429ac26211ec68b1a079b39240f 100644
--- a/sdk/lib/_internal/pub/test/error_group_test.dart
+++ b/sdk/lib/_internal/pub/test/error_group_test.dart
@@ -38,7 +38,7 @@ main() {
expect(() => errorGroup.registerFuture(new Future.value()),
throwsStateError);
- expect(() => errorGroup.registerStream(new StreamController().stream),
+ expect(() => errorGroup.registerStream(new StreamController(sync: true).stream),
floitsch 2013/05/30 12:13:48 long line.
Lasse Reichstein Nielsen 2013/05/31 05:51:59 Done.
throwsStateError);
});
});
@@ -66,7 +66,7 @@ main() {
completer.future.then(expectAsync1((_) {
expect(() => errorGroup.registerFuture(new Future.value()),
throwsStateError);
- expect(() => errorGroup.registerStream(new StreamController().stream),
+ expect(() => errorGroup.registerStream(new StreamController(sync: true).stream),
floitsch 2013/05/30 12:13:48 ditto.
Lasse Reichstein Nielsen 2013/05/31 05:51:59 Done.
throwsStateError);
}));
});
@@ -205,7 +205,7 @@ main() {
setUp(() {
errorGroup = new ErrorGroup();
- controller = new StreamController();
+ controller = new StreamController(sync: true);
stream = errorGroup.registerStream(controller.stream.asBroadcastStream());
});
@@ -277,7 +277,7 @@ main() {
setUp(() {
errorGroup = new ErrorGroup();
- controller = new StreamController();
+ controller = new StreamController(sync: true);
stream = errorGroup.registerStream(controller.stream);
});
@@ -326,8 +326,8 @@ main() {
setUp(() {
errorGroup = new ErrorGroup();
- controller1 = new StreamController();
- controller2 = new StreamController();
+ controller1 = new StreamController(sync: true);
+ controller2 = new StreamController(sync: true);
stream1 = errorGroup.registerStream(controller1.stream.asBroadcastStream());
stream2 = errorGroup.registerStream(controller2.stream.asBroadcastStream());
});
@@ -385,7 +385,7 @@ main() {
setUp(() {
errorGroup = new ErrorGroup();
- controller = new StreamController();
+ controller = new StreamController(sync: true);
stream = errorGroup.registerStream(controller.stream.asBroadcastStream());
completer = new Completer();
future = errorGroup.registerFuture(completer.future);

Powered by Google App Engine
This is Rietveld 408576698