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

Side by Side Diff: tests/lib/async/stream_controller_async_test.dart

Issue 18271015: Add Stream.join (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sdk/lib/async/stream.dart ('k') | tests/lib/async/stream_join_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // Test the basic StreamController and StreamController.singleSubscription. 5 // Test the basic StreamController and StreamController.singleSubscription.
6 library stream_controller_async_test; 6 library stream_controller_async_test;
7 7
8 import "package:expect/expect.dart"; 8 import "package:expect/expect.dart";
9 import 'dart:async'; 9 import 'dart:async';
10 import 'dart:isolate'; 10 import 'dart:isolate';
11 import '../../../pkg/unittest/lib/unittest.dart'; 11 import 'package:unittest/unittest.dart';
12 import 'event_helper.dart'; 12 import 'event_helper.dart';
13 import 'stream_state_helper.dart'; 13 import 'stream_state_helper.dart';
14 14
15 void cancelSub(StreamSubscription sub) { sub.cancel(); } 15 void cancelSub(StreamSubscription sub) { sub.cancel(); }
16 16
17 testController() { 17 testController() {
18 // Test fold 18 // Test fold
19 test("StreamController.fold", () { 19 test("StreamController.fold", () {
20 StreamController c = new StreamController(); 20 StreamController c = new StreamController();
21 Stream stream = c.stream.asBroadcastStream(onCancel: cancelSub); 21 Stream stream = c.stream.asBroadcastStream(onCancel: cancelSub);
(...skipping 661 matching lines...) Expand 10 before | Expand all | Expand 10 after
683 testRethrow(); 683 testRethrow();
684 testBroadcastController(); 684 testBroadcastController();
685 testAsBroadcast(); 685 testAsBroadcast();
686 testSink(sync: true, broadcast: false, asBroadcast: false); 686 testSink(sync: true, broadcast: false, asBroadcast: false);
687 testSink(sync: true, broadcast: false, asBroadcast: true); 687 testSink(sync: true, broadcast: false, asBroadcast: true);
688 testSink(sync: true, broadcast: true, asBroadcast: false); 688 testSink(sync: true, broadcast: true, asBroadcast: false);
689 testSink(sync: false, broadcast: false, asBroadcast: false); 689 testSink(sync: false, broadcast: false, asBroadcast: false);
690 testSink(sync: false, broadcast: false, asBroadcast: true); 690 testSink(sync: false, broadcast: false, asBroadcast: true);
691 testSink(sync: false, broadcast: true, asBroadcast: false); 691 testSink(sync: false, broadcast: true, asBroadcast: false);
692 } 692 }
OLDNEW
« no previous file with comments | « sdk/lib/async/stream.dart ('k') | tests/lib/async/stream_join_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698