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

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

Issue 295913003: Make Stream.where, etc., be documented as inheriting broadcast state. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Make asyncMap and asyncExpand also inherit broadcastness. Created 6 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: tests/lib/async/stream_timeout_test.dart
diff --git a/tests/lib/async/stream_timeout_test.dart b/tests/lib/async/stream_timeout_test.dart
index eac7100511c5a07917bbe0a5e726c8d4a210f0c0..e0854960d2564c22abed53dcaa8ae59878eb6dc8 100644
--- a/tests/lib/async/stream_timeout_test.dart
+++ b/tests/lib/async/stream_timeout_test.dart
@@ -67,7 +67,7 @@ main() {
test("broadcast stream timeout", () {
StreamController c = new StreamController.broadcast();
Stream tos = c.stream.timeout(ms5);
- expect(tos.isBroadcast, false);
+ expect(tos.isBroadcast, true);
tos.handleError(expectAsync((e, s) {
expect(e, new isInstanceOf<TimeoutException>());
expect(s, null);
@@ -77,7 +77,7 @@ main() {
test("asBroadcast stream timeout", () {
StreamController c = new StreamController.broadcast();
Stream tos = c.stream.asBroadcastStream().timeout(ms5);
- expect(tos.isBroadcast, false);
+ expect(tos.isBroadcast, true);
tos.handleError(expectAsync((e, s) {
expect(e, new isInstanceOf<TimeoutException>());
expect(s, null);

Powered by Google App Engine
This is Rietveld 408576698