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

Side by Side Diff: tests/language/async_star_regression_fisk_test.dart

Issue 1284223005: Forward cancel subscription in stream pipes. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Address comment. 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 unified diff | Download patch
« no previous file with comments | « sdk/lib/async/stream_pipe.dart ('k') | tests/language/language.status » ('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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 // This test may crash dart2js. 5 // This test may crash dart2js.
6 6
7 import "dart:async"; 7 import "dart:async";
8 import "package:expect/expect.dart"; 8 import "package:expect/expect.dart";
9 import "package:async_helper/async_helper.dart"; 9 import "package:async_helper/async_helper.dart";
10 10
(...skipping 16 matching lines...) Expand all
27 await for(int i in fisk().take(count)) res.add(i); 27 await for(int i in fisk().take(count)) res.add(i);
28 } finally { 28 } finally {
29 res.add("done"); 29 res.add("done");
30 } 30 }
31 } 31 }
32 32
33 asyncStart(); 33 asyncStart();
34 fugl(3).whenComplete(() => fugl(2)) 34 fugl(3).whenComplete(() => fugl(2))
35 .whenComplete(() => fugl(1)) 35 .whenComplete(() => fugl(1))
36 .whenComplete(() { 36 .whenComplete(() {
37 Expect.listEquals(res, 37 Expect.listEquals(
38 ["fisk 3", "+fisk", 0, 1, "-fisk", "done", 38 ["fisk 3", "+fisk", 0, 1, "-fisk", "done",
39 "fisk 2", "+fisk", 0, 1, "-fisk", "done", 39 "fisk 2", "+fisk", 0, 1, "-fisk", "done",
40 "fisk 1", "+fisk", 0, "done", "-fisk", ]); 40 "fisk 1", "+fisk", 0, "-fisk", "done"],
41 res);
41 asyncEnd(); 42 asyncEnd();
42 }); 43 });
43 } 44 }
OLDNEW
« no previous file with comments | « sdk/lib/async/stream_pipe.dart ('k') | tests/language/language.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698